forked from alanmcgovern/monotorrent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.proj
61 lines (49 loc) · 2 KB
/
build.proj
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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build" ToolsVersion="15.0">
<PropertyGroup>
<CI Condition="'$(CI)' == '' and '$(TF_BUILD)' == 'true'">true</CI>
<CI Condition="'$(CI)' == '' ">false</CI>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Out Condition=" '$(Out)' == '' ">$(MSBuildThisFileDirectory)out</Out>
<MSBuildCommonProperties>$(MSBuildCommonProperties);Deterministic=true</MSBuildCommonProperties>
</PropertyGroup>
<ItemGroup>
<SolutionFile Include="src/MonoTorrent.sln">
<Configuration>$(Configuration)</Configuration>
</SolutionFile>
<PackFile Include="src/MonoTorrent/MonoTorrent.csproj">
<Configuration>$(Configuration)</Configuration>
</PackFile>
</ItemGroup>
<Target Name="Build" DependsOnTargets="$(BuildDependsOn)">
<Error Text="You have not restored the solution. Run "msbuild /restore" to restore and compile, or run "msbuild /t:Restore" if you just want to restore."
Condition="! Exists ('src\MonoTorrent\obj\project.assets.json')" />
<MSBuild
Projects="@(SolutionFile)"
Properties="$(MSBuildCommonProperties);Configuration=%(SolutionFile.Configuration)"
Targets="Build"
/>
</Target>
<Target Name="Clean">
<MSBuild
Projects="@(SolutionFile)"
Properties="$(MSBuildCommonProperties);Configuration=%(SolutionFile.Configuration)"
Targets="Clean"
/>
</Target>
<Target Name="Pack">
<MakeDir Directories="$(Out)" />
<MSBuild
Projects="@(PackFile)"
Properties="$(MSBuildCommonProperties);Configuration=%(PackFile.Configuration);PackageOutputPath=$(Out)"
Targets="Pack"
/>
</Target>
<Target Name="Rebuild" DependsOnTargets="Clean;Build" />
<Target Name="Restore">
<MSBuild
Projects="@(SolutionFile)"
Properties="$(MSBuildCommonProperties);Configuration=%(SolutionFile.Configuration)"
Targets="Restore"
/>
</Target>
</Project>