@@ -178,6 +178,7 @@ let config configurationName envVars =
178178let architectureMoniker = if Is64BitOperatingSystemthen " x64" else " x86"
179179let CSC = requireFile( CORDIR++ " csc.exe" )
180180let ILDASM = requireFile( packagesDir++ ( " runtime.win-" + architectureMoniker+ " .Microsoft.NETCore.ILDAsm.2.0.3" ) ++ " runtimes" ++ ( " win-" + architectureMoniker) ++ " native" ++ " ildasm.exe" )
181+ let coreclrdll = requireFile( packagesDir++ ( " runtime.win-" + architectureMoniker+ " .Microsoft.NETCore.Runtime.CoreCLR.2.0.3" ) ++ " runtimes" ++ ( " win-" + architectureMoniker) ++ " native" ++ " coreclr.dll" )
181182let PEVERIFY = requireFile( CORSDK++ " peverify.exe" )
182183let FSI_FOR_SCRIPTS =
183184match envVars|> Map.tryFind" _fsiexe" with
@@ -191,9 +192,8 @@ let config configurationName envVars =
191192| _ -> failwithf" Found more than one 'FSharp.Compiler.Tools' inside '%s ', please clean up." packagesDir
192193let toolsDir = SCRIPT_ ROOT++ " .." ++ " .." ++ " Tools"
193194let dotNetExe = toolsDir++ " dotnetcli" ++ " dotnet.exe"
194- // ildasm requires coreclr.dll to run which has already been restored to the tools directory
195- let coreclrSource = toolsDir++ " dotnet20" ++ " shared" ++ " Microsoft.NETCore.App" ++ " 2.0.0" ++ " coreclr.dll"
196- File.Copy( coreclrSource, Path.GetDirectoryName( ILDASM) ++ " coreclr.dll" , overwrite= true )
195+ // ildasm requires coreclr.dll to run which has already been restored to the packages directory
196+ File.Copy( coreclrdll, Path.GetDirectoryName( ILDASM) ++ " coreclr.dll" , overwrite= true )
197197
198198#if ! FSHARP_ SUITE_ DRIVES_ CORECLR_ TESTS
199199let FSI = requireFile( FSCBinPath++ " fsi.exe" )