@@ -55,14 +55,10 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and
5555 <Tailcalls Condition =" '$(Tailcalls)' == ''" >true</Tailcalls >
5656 </PropertyGroup >
5757
58- <PropertyGroup Condition =" '$(OS)' != 'Unix' and Exists('$(MSBuildThisFileDirectory)\RunFsc.cmd')" >
59- <FscToolPath Condition =" '$(FscToolPath)' == ''" >$(MSBuildThisFileDirectory)</FscToolPath >
60- <FscToolExe Condition =" '$(FscToolExe)' == ''" >RunFsc.cmd</FscToolExe >
61- </PropertyGroup >
62-
63- <PropertyGroup Condition =" '$(OS)' == 'Unix' and Exists('$(MSBuildThisFileDirectory)\RunFsc.sh')" >
64- <FscToolPath Condition =" '$(FscToolPath)' == ''" >$(MSBuildThisFileDirectory)</FscToolPath >
65- <FscToolExe Condition =" '$(OS)' == 'Unix' and '$(FscToolExe)' == ''" >RunFsc.sh</FscToolExe >
58+ <PropertyGroup Condition =" '$(DOTNET_HOST_PATH)' != ''" >
59+ <FscToolPath Condition =" '$(FscToolPath)' == ''" >$([System.IO.Path]::GetDirectoryName($(DOTNET_HOST_PATH)))</FscToolPath >
60+ <FscToolExe Condition =" '$(FscToolExe)' == ''" >$([System.IO.Path]::GetFileName($(DOTNET_HOST_PATH)))</FscToolExe >
61+ <DotnetFscCompilerPath >"$(MSBuildThisFileDirectory)fsc.exe"</DotnetFscCompilerPath >
6662 </PropertyGroup >
6763
6864 <ItemGroup Condition =" '$(DisableImplicitSystemValueTupleReference)' != 'true'