@@ -64,7 +64,7 @@ type public Fsc () as this =
6464 let mutable targetProfile : string = null
6565 let mutable targetType : string = null
6666 let mutable toolExe : string = " fsc.exe"
67- let mutable toolPath : string =
67+ let defaultToolPath =
6868 let locationOfThisDll =
6969 try Some( Path.GetDirectoryName( typeof< Fsc>. Assembly.Location))
7070 with _ -> None
@@ -471,11 +471,6 @@ type public Fsc () as this =
471471 member fsc.TreatWarningsAsErrors
472472 with get() = treatWarningsAsErrors
473473 and set ( p ) = treatWarningsAsErrors <- p
474-
475- // For targeting other folders for "fsc.exe" (or ToolExe if different)
476- member fsc.ToolPath
477- with get() = toolPath
478- and set ( s ) = toolPath <- s
479474
480475 // When set to true, generate resource names in the same way as C# with root namespace and folder names
481476 member fsc.UseStandardResourceNames
@@ -536,8 +531,9 @@ type public Fsc () as this =
536531 override fsc.StandardErrorEncoding = if utf8output then System.Text.Encoding.UTF8 else base .StandardErrorEncoding
537532 override fsc.StandardOutputEncoding = if utf8output then System.Text.Encoding.UTF8 else base .StandardOutputEncoding
538533 override fsc.GenerateFullPathToTool () =
539- if toolPath = " " then raise ( new System.InvalidOperationException( FSBuild.SR.toolpathUnknown()))
540- System.IO.Path.Combine( toolPath, fsc.ToolExe)
534+ if defaultToolPath = " " then
535+ raise ( new System.InvalidOperationException( FSBuild.SR.toolpathUnknown()))
536+ System.IO.Path.Combine( defaultToolPath, fsc.ToolExe)
541537 override fsc.LogToolCommand ( message : string ) =
542538 fsc.Log.LogMessageFromText( message, MessageImportance.Normal) |> ignore
543539
@@ -579,8 +575,8 @@ type public Fsc () as this =
579575 invokeCompiler baseCallDelegate
580576 with
581577 | e ->
582- Debug.Assert ( false , " HostObject received by Fsc task did not have a Compile method or the compile method threw an exception. " + ( e.ToString()))
583- reraise()
578+ Debug.Fail ( " HostObject received by Fsc task did not have a Compile method or the compile method threw an exception. " + ( e.ToString()))
579+ reraise()
584580
585581 override fsc.GenerateCommandLineCommands () =
586582 let builder = new FSharpCommandLineBuilder()
0 commit comments