diff options
author | Layomi Akinrinade <laakinri@microsoft.com> | 2020-08-07 18:18:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-07 18:18:09 +0300 |
commit | ebc57b941320a86fc2b34047e53448c2acbebb98 (patch) | |
tree | ddf13ae2b1a168eef4bf0f7907abbdb3fdae3476 /eng/illink.targets | |
parent | fb6043adf72d8b7687d5b495dc7c888c82eea016 (diff) |
Address additional feedback from #40172 (#40505)
Diffstat (limited to 'eng/illink.targets')
-rw-r--r-- | eng/illink.targets | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/eng/illink.targets b/eng/illink.targets index 682871ebc72..d27feb5f466 100644 --- a/eng/illink.targets +++ b/eng/illink.targets @@ -276,9 +276,8 @@ <!-- When running from Desktop MSBuild, DOTNET_HOST_PATH is not set. In this case, explicitly specify the path to the dotnet host. --> <PropertyGroup Condition=" '$(DOTNET_HOST_PATH)' == '' "> - <_DotNetHostDirectory>$(NetCoreRoot)</_DotNetHostDirectory> - <_DotNetHostFileName>dotnet</_DotNetHostFileName> - <_DotNetHostFileName Condition=" '$(OS)' == 'Windows_NT' ">dotnet.exe</_DotNetHostFileName> + <_DotNetHostDirectory>$(DotNetRoot)</_DotNetHostDirectory> + <_DotNetHostFileName>$([System.IO.Path]::GetFileName('$(DotNetTool)'))</_DotNetHostFileName> </PropertyGroup> <ILLink AssemblyPaths="$(ILLinkTrimInputAssembly)" |