Fix unset ZapRelocationType for fixup (#18589)
[platform/upstream/coreclr.git] / Tools / toolruntime.targets
1 <?xml version="1.0" encoding="utf-8"?>
2 <Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
4   <UsingTask TaskName="PrereleaseResolveNuGetPackageAssets" AssemblyFile="$(BuildToolsTaskDir)Microsoft.DotNet.Build.Tasks.dll"/>
5
6   <PropertyGroup>
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
10          process name. -->
11     <ToolHost>dotnet</ToolHost>
12
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=) &amp; $(ToolHostCmd)</ToolHostCmd>
17   </PropertyGroup>
18   
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." />
22   </Target>
23 </Project>