-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSharpKml.proj
More file actions
43 lines (34 loc) · 1.35 KB
/
SharpKml.proj
File metadata and controls
43 lines (34 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="BuildDebug"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Major>2</Major>
<Minor>1</Minor>
<Build_Number>1</Build_Number>
<NugetHome>$(MSBuildProjectDirectory)\.nuget</NugetHome>
</PropertyGroup>
<Target Name="Clean">
<ItemGroup>
<DllFiles Include="*.dll"/>
<ExeFiles Include="*.exe"/>
<NupkgFiles Include="LE_SharpKML*.nupkg"/>
</ItemGroup>
<Delete Files="@(DllFiles)"/>
<Delete Files="@(ExeFiles)"/>
<Delete Files="@(NupkgFiles)"/>
<RemoveDir Directories="Bin;obj" />
</Target>
<Target Name="BuildDebug" DependsOnTargets="Clean">
<MSBuild Projects="SharpKml.sln"
Properties="Configuration=Debug;Platform=Any CPU;DefineConstants=DEBUG;TRACE;$(DefineConstants)"
Targets="Rebuild"
/>
</Target>
<Target Name="BuildRelease" DependsOnTargets="Clean">
<MSBuild Projects="SharpKml.sln"
Properties="Configuration=Release;Platform=Any CPU;DefineConstants=$(DefineConstants)"
Targets="Rebuild"
/>
<Exec Command=""$(NugetHome)\NuGet.exe" pack "$(MSBuildProjectDirectory)\LE_SharpKml.nuspec" -NoPackageAnalysis -Version $(Major).$(Minor).$(Build_Number) -BasePath $(MSBuildProjectDirectory)\SharpKml.Kmz\bin\Release\ -OutputDirectory $(MSBuildProjectDirectory)\"/>
</Target>
</Project>