forked from dotnet/msbuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.proj
25 lines (20 loc) · 1.1 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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="BuildAndTest" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="dir.props" />
<ItemGroup>
<Project Include="src\dirs.proj" />
<Project Include="Samples\dirs.proj" Condition="'$(BuildSamples)'!='false'" />
</ItemGroup>
<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">
<Message Importance="High" Text="Restoring NuGet packages..." />
<Exec Command="$(NugetToolPath) restore "$(SourceDir)MSBuild.sln"" StandardOutputImportance="Low" />
</Target>
</Project>