This repository has been archived by the owner on Apr 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
/
msbuild.config
62 lines (53 loc) · 2.75 KB
/
msbuild.config
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
<PropertyGroup>
<OutDir>$(MSBuildStartupDirectory)\build</OutDir>
<NuGetDir>$(MSBuildStartupDirectory)\nuget</NuGetDir>
<NuGetBetaDir>$(MSBuildStartupDirectory)\nuget-beta</NuGetBetaDir>
<SolutionProperties>
Platform=Any CPU;
Configuration=Release
</SolutionProperties>
</PropertyGroup>
<ItemGroup>
<Solution Include="src/SharpDox.sln">
<Properties>
$(SolutionProperties)
</Properties>
</Solution>
<LanguageFiles Include="lang/*"/>
<ShellFiles Include="src/Shells/SharpDox.GUI/bin/Release/SharpDox.GUI.exe;
src/Shells/SharpDox.GUI/bin/Release/SharpDox.GUI.exe.config;
src/Shells/SharpDox.Console/bin/Release/SharpDox.Console.exe;
src/Shells/SharpDox.Console/bin/Release/SharpDox.Console.exe.config"/>
<LibraryFiles Include="src/Core/SharpDox.Core/bin/Release/*.dll;
src/Libraries/SharpDox.UML/bin/Release/SharpDox.*.dll;
src/Shells/SharpDox.GUI/bin/Release/*.dll"/>
<AdditionalFiles Include="CHANGELOG.txt"/>
<NugetSpecFile Include="sharpDox SDK.nuspec"/>
<NugetFiles Include="src/Core/SharpDox.Core/bin/Release/SharpDox.Model.dll;
src/Core/SharpDox.Core/bin/Release/SharpDox.Sdk.dll;
src/Libraries/SharpDox.UML/bin/Release/SharpDox.UML.dll"/>
<NugetPackage Include="SharpDox.SdkPackage*"/>
<NugetBetaSpecFile Include="sharpDox SDK-beta.nuspec"/>
<NugetBetaFiles Include="src/Core/SharpDox.Core/bin/Release/SharpDox.Model.dll;
src/Core/SharpDox.Core/bin/Release/SharpDox.Sdk.dll;
src/Libraries/SharpDox.UML/bin/Release/SharpDox.UML.dll"/>
<NugetBetaPackage Include="SharpDox.SdkPackage*"/>
</ItemGroup>
<Target Name="Build">
<RemoveDir Directories="$(OutDir)" />
<MSBuild Projects="@(Solution)" Targets="Clean;Build" />
<Copy SourceFiles="@(ShellFiles)" DestinationFolder="$(OutDir)" />
<Copy SourceFiles="@(LibraryFiles)" DestinationFolder="$(OutDir)\libs" />
<Copy SourceFiles="@(LanguageFiles)" DestinationFolder="$(OutDir)\lang" />
<Copy SourceFiles="@(AdditionalFiles)" DestinationFolder="$(OutDir)" />
<Copy SourceFiles="@(NugetSpecFile)" DestinationFolder="$(NuGetDir)" />
<Copy SourceFiles="@(NugetFiles)" DestinationFolder="$(NuGetDir)\lib\net40" />
<Exec Command="..\nuget.exe pack %22sharpDox SDK.nuspec%22" WorkingDirectory="$(NuGetDir)"/>
<RemoveDir Directories="$(NuGetDir)\lib\" />
<Copy SourceFiles="@(NugetBetaSpecFile)" DestinationFolder="$(NuGetBetaDir)" />
<Copy SourceFiles="@(NugetBetaFiles)" DestinationFolder="$(NuGetBetaDir)\lib\net40" />
<Exec Command="..\nuget.exe pack %22sharpDox SDK-beta.nuspec%22" WorkingDirectory="$(NuGetBetaDir)"/>
<RemoveDir Directories="$(NuGetBetaDir)\lib\" />
</Target>
</Project>