forked from dotnet/msbuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.proj
45 lines (37 loc) · 1.88 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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="BuildAndTest" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<IsTraversalBuild>true</IsTraversalBuild>
</PropertyGroup>
<Import Project="src\dir.props" />
<ItemGroup>
<ProjectWithoutConfiguration Include="build\dirs.proj" />
<ProjectWithoutConfiguration Include="src\dirs.proj" />
<ProjectWithoutConfiguration Include="Samples\dirs.proj" Condition="'$(BuildSamples)'!='false'" />
</ItemGroup>
<PropertyGroup>
<!-- build\dirs.proj must be built before src\dirs.proj because the latter depends on task dlls produced by the former -->
<BuildInParallel>false</BuildInParallel>
</PropertyGroup>
<Import Project="dir.targets" />
<Import Project="dir.traversal.targets" />
<!-- Ensure the BuildTools package has been restored when doing a Rebuild. This needs to happen
after import dir.traversal.targets. If this isn't done, Imports will fail because the Clean
target will load all projects. -->
<Target Name="Rebuild" DependsOnTargets="_RestoreBuildToolsPackagesConfig;Clean;Build" />
<Target Name="BulkRestoreNugetPackages"
BeforeTargets="Build;BuildAllProjects"
DependsOnTargets="_RestoreBuildToolsPackagesConfig"
Condition="'$(SkipBulkRestore)' != 'true'">
</Target>
<!-- Create Project ItemGroup (from ProjectWithoutConfiguration) with Platform metadata -->
<Target Name="MapProjectAndPlatform" BeforeTargets="BuildAllProjects">
<ItemGroup>
<Platforms Include="$(Platform)" />
<Project Include="@(ProjectWithoutConfiguration)">
<Properties>Platform=%(Platforms.Identity)</Properties>
</Project>
</ItemGroup>
<Message Text="Building Project(s): %(Project.Identity) : Configuration=$(Configuration), %(Project.Properties) " Importance="High" />
</Target>
</Project>