This repository has been archived by the owner on Jun 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.proj
53 lines (39 loc) · 1.99 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
<Project Sdk="CoreBuild/1.0.0-alpha" DefaultTargets="Build" TreatAsLocalProperty="Configuration">
<Import Project="src\Directory.Build.props"/>
<PropertyGroup>
<Configuration Condition="'$(Configuration)' == '' and '$(CI)' == 'true'">Release</Configuration>
<Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
<IntermediateOutputPath>$(RestoreOutputPath)\</IntermediateOutputPath>
<Out Condition="'$(Out)' == ''">$(MSBuildThisFileDirectory)out</Out>
<AdditionalProperties>Configuration=$(Configuration);PackageOutputPath=$(Out);NuGetBuildTasksPackTargets=DONT-WANT-SDK-PACK</AdditionalProperties>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="xunit.runner.console" Version="2.4.0" />
<PackageReference Include="JsonPoke.MSBuild" Version="1.0.9" />
</ItemGroup>
<ItemDefinitionGroup>
<Solution>
<AdditionalProperties>$(AdditionalProperties)</AdditionalProperties>
</Solution>
</ItemDefinitionGroup>
<ItemGroup>
<Solution Include="src\*.sln" />
</ItemGroup>
<Target Name="Configure" DependsOnTargets="Restore" />
<Target Name="Build" DependsOnTargets="Version">
<Message Text="##vso[build.updatebuildnumber]$(PackageVersion)" Importance="high" Condition="'$(TF_BUILD)' == 'true'" />
<MakeDir Directories="$(Out)" Condition="!Exists('$(Out)')" />
<MSBuild Projects="@(Solution)" Targets="Build" />
<Copy SourceFiles="NuGet.Config" DestinationFolder="$(Out)" />
</Target>
<Target Name="Clean">
<Exec Command='for /d /r . %%d in (bin,obj,.vs) do @if exist "%%d" rd /s/q "%%d"'
Condition="'$(OS)' == 'Windows_NT'" />
</Target>
<Target Name="All" DependsOnTargets="Rebuild" />
<Target Name="Rebuild" DependsOnTargets="Clean;Restore;Build" />
<Target Name="_Restore" AfterTargets="Restore">
<MSBuild BuildInParallel="true" Projects="@(Solution);test\Xamarin.VSSDK.Tests\Xamarin.VSSDK.Tests.csproj" Targets="Restore" />
</Target>
<Import Project="src\Version.targets" />
</Project>