-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.msbuild
26 lines (26 loc) · 1.07 KB
/
build.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
<?xml version="1.0" encoding="utf-8"?>
<Project InitialTargets="" DefaultTargets="All" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
<PropertyGroup>
<!-- Default build configuration if none is specified. -->
<Configuration Condition="'$(Configuration)'==''">Debug</Configuration>
</PropertyGroup>
<ItemGroup>
<CleanFolder Include="build"/>
<CleanFolder Include="TestResults"/>
<!-- Solutions that should be built. -->
<SolutionFile Include="$(MSBuildProjectDirectory)\**\*.sln" />
</ItemGroup>
<Target Name="All">
<CallTarget Targets="Clean;Compile" />
<Message Text="Build complete."/>
</Target>
<Target Name="Clean">
<Message Text="Removing build artifacts." />
<RemoveDir Directories="@(CleanFolder)" />
<MSBuild Projects="%(SolutionFile.FullPath)" Condition="Exists('%(SolutionFile.FullPath)')" Targets="Clean"/>
</Target>
<Target Name="Compile">
<Message Text="Building the solution(s)." />
<MSBuild Projects="%(SolutionFile.FullPath)" Targets="Build" Properties="Configuration=$(Configuration)"/>
</Target>
</Project>