1 <?xml version="1.0" encoding="utf-8"?>
2 <Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
4 <UsingTask TaskName="PrereleaseResolveNuGetPackageAssets" AssemblyFile="$(BuildToolsTaskDir)Microsoft.DotNet.Build.Tasks.dll"/>
7 <!-- Invoke with the correct casing of corerun per-OS. There are some process Tools
8 that check the invoked process name against known casing which fail under code coverage.
9 This is probably because the code coverage target invocation does not canonicalize the
11 <ToolHost>dotnet</ToolHost>
13 <ToolRuntimePath Condition="'$(ToolRuntimePath)' == ''">$(ProjectDir)Tools/</ToolRuntimePath>
14 <ToolHostCmd Condition="'$(ToolHostCmd)'==''">"$(ToolRuntimePath)dotnetcli/$(ToolHost)"</ToolHostCmd>
15 <!-- If COMPLUS_InstallRoot is set clear it before calling the ToolHost otherwise some root activations like PDB COM activation will fail -->
16 <ToolHostCmd Condition="'$(COMPLUS_InstallRoot)' != ''">(set COMPLUS_InstallRoot=) & $(ToolHostCmd)</ToolHostCmd>
19 <Target Name="EnsureBuildToolsRuntime">
20 <Error Condition="!Exists('$(ToolRuntimePath)')"
21 Text="The Tool Runtime directory [$(ToolRuntimePath)] does not exist. Please run $(SourceDir)Build.cmd to ensure the tools are installed before attempting to build an individual project." />