6bdd276d05
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
54 lines
2.4 KiB
XML
54 lines
2.4 KiB
XML
<?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" />
|
|
|
|
<!-- The following properties are in place to keep the behavior of build.cmd while we work on the dev workflow steps. -->
|
|
<PropertyGroup>
|
|
<!-- To disable the restoration of packages, set RestoreDuringBuild=false or pass /p:RestoreDuringBuild=false.-->
|
|
<RestoreDuringBuild Condition="'$(RestoreDuringBuild)'==''">true</RestoreDuringBuild>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<GenerateCodeCoverageReportForAll>true</GenerateCodeCoverageReportForAll>
|
|
</PropertyGroup>
|
|
<Import Project="$(ToolsDir)CodeCoverage.targets" Condition="Exists('$(ToolsDir)CodeCoverage.targets')" />
|
|
<Import Project="$(ToolsDir)PerfTesting.targets" Condition="Exists('$(ToolsDir)PerfTesting.targets') and '$(Performance)' == 'true'"/>
|
|
<Import Project="$(ToolsDir)VersionTools.targets" Condition="Exists('$(ToolsDir)VersionTools.targets')" />
|
|
|
|
<ItemGroup>
|
|
<Project Include="src\dirs.proj" />
|
|
</ItemGroup>
|
|
|
|
<Import Project="dir.targets" />
|
|
|
|
<Import Project="dir.traversal.targets" />
|
|
|
|
<PropertyGroup Condition="'$(RestoreDuringBuild)'=='true'">
|
|
<TraversalBuildDependsOn>
|
|
BatchRestorePackages;
|
|
$(TraversalBuildDependsOn);
|
|
</TraversalBuildDependsOn>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="BatchRestorePackages">
|
|
<MakeDir Directories="$(PackagesDir)" Condition="!Exists('$(PackagesDir)')" />
|
|
|
|
<Message Importance="High" Text="[$([System.DateTime]::Now.ToString('HH:mm:ss.ff'))] Restoring all packages..." />
|
|
|
|
<Exec Command="$(DnuRestoreCommand) @(DnuRestoreDir->'"%(Identity)"', ' ')"
|
|
StandardOutputImportance="Low"
|
|
CustomErrorRegularExpression="(^Unable to locate .*)|(^Updating the invalid lock file with .*)"
|
|
ContinueOnError="ErrorAndContinue" />
|
|
|
|
<Message Importance="High" Text="[$([System.DateTime]::Now.ToString('HH:mm:ss.ff'))] Restoring all packages...Done." />
|
|
</Target>
|
|
|
|
<!-- Override RestorePackages from dir.traversal.targets and do a batch restore -->
|
|
<Target Name="RestorePackages" DependsOnTargets="BatchRestorePackages" />
|
|
|
|
<!-- Override clean from dir.traversal.targets and just remove the full BinDir unless build.[cmd|sh] has already done the cleaning -->
|
|
<Target Name="Clean">
|
|
<RemoveDir Condition="'$(CleanedTheBuild)' != '1'" Directories="$(ObjDir)" />
|
|
</Target>
|
|
|
|
</Project> |