This repository has been archived by the owner on Feb 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild-all.msbuild
66 lines (47 loc) · 2.26 KB
/
build-all.msbuild
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
63
64
65
66
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="CompleteBuild" ToolsVersion="4.0">
<PropertyGroup>
<MSBuildExtensionsPath>3rd\MSBuildCommunityTasks</MSBuildExtensionsPath>
</PropertyGroup>
<UsingTask TaskName="MSBuild.Community.Tasks.Zip" AssemblyFile="$(MSBuildExtensionsPath)\MSBuild.Community.Tasks.dll" />
<PropertyGroup>
<ReleaseFolder>release</ReleaseFolder>
</PropertyGroup>
<PropertyGroup>
<BinFolder>Release\bin</BinFolder>
</PropertyGroup>
<!-- SOURCES -->
<ItemGroup>
<ProjectToBuild Include="Src\*.sln" />
</ItemGroup>
<ItemGroup>
<!-- CORE -->
<BuildOutput Include="Src\LeagueOfMonads\bin\Release\LeagueOfMonads.dll" />
<BuildOutput Include="Src\LeagueOfMonads\bin\Release\LeagueOfMonads.pdb" />
</ItemGroup>
<!-- BUILD -->
<Target Name="Delete">
<RemoveDir Directories="$(ReleaseFolder)" />
</Target>
<Target Name="Create" DependsOnTargets="Delete">
<MakeDir Directories="$(ReleaseFolder)" Condition="!Exists($(ReleaseFolder))" />
</Target>
<Target Name="Clean" DependsOnTargets="Create">
<MSBuild Projects="@(ProjectToBuild)" Targets="Clean" Properties="Configuration=Release;Platform=Any CPU" />
<MSBuild Projects="@(ProjectToBuild)" Targets="Clean" Properties="Configuration=Debug;Platform=Any CPU" />
</Target>
<Target Name="Build" DependsOnTargets="Clean">
<MSBuild Projects="@(ProjectToBuild)" Properties="Configuration=Release;Platform=Any CPU" />
<!-- <MSBuild Projects="@(ProjectToBuild)" Properties="Configuration=Debug;Platform=Any CPU" /><MSBuild Projects="@(ProjectToBuild)" Properties="Configuration=Debug;Platform=Any CPU" /> -->
</Target>
<Target Name="Copy" DependsOnTargets="Build">
<Copy SourceFiles="@(BuildOutput)" DestinationFolder="$(ReleaseFolder)" />
</Target>
<Target Name="Zip" DependsOnTargets="Copy">
<ItemGroup>
<FilesToZip Include="$(ReleaseFolder)\*.*" />
</ItemGroup>
<Zip Files="@(filestozip)" WorkingDirectory="$(ReleaseFolder)" ZipFileName="$(ReleaseFolder)\LeagueOfMonads.0.9.1.zip" />
</Target>
<Target Name="CompleteBuild" DependsOnTargets="Zip" />
</Project>