@@ -32,7 +32,7 @@ let internal SimulatedMSBuildResolver =
32
32
#endif
33
33
34
34
member __.Resolve ( resolutionEnvironment , references , targetFrameworkVersion , targetFrameworkDirectories , targetProcessorArchitecture ,
35
- outputDirectory , fsharpCoreDir , explicitIncludeDirs , implicitIncludeDir , logMessage , logWarning , logError ) =
35
+ fsharpCoreDir , explicitIncludeDirs , implicitIncludeDir , logMessage , logWarningOrError ) =
36
36
37
37
#if ! RESHAPED_ MSBUILD
38
38
let registrySearchPaths () =
@@ -88,7 +88,7 @@ let internal SimulatedMSBuildResolver =
88
88
if not found && Path.IsPathRooted( r) then
89
89
if FileSystem.SafeExists( r) then
90
90
success r
91
- with e -> logWarning " SR001" ( e.ToString())
91
+ with e -> logWarningOrError false " SR001" ( e.ToString())
92
92
93
93
#if ! RESHAPED_ MSBUILD
94
94
// For this one we need to get the version search exactly right, without doing a load
@@ -104,7 +104,7 @@ let internal SimulatedMSBuildResolver =
104
104
let trialPath = Path.Combine( fscoreDir0, n.Name + " .dll" )
105
105
if FileSystem.SafeExists( trialPath) then
106
106
success trialPath
107
- with e -> logWarning " SR001" ( e.ToString())
107
+ with e -> logWarningOrError false " SR001" ( e.ToString())
108
108
#endif
109
109
110
110
let isFileName =
@@ -119,7 +119,7 @@ let internal SimulatedMSBuildResolver =
119
119
let trialPath = Path.Combine( searchPath, qual)
120
120
if FileSystem.SafeExists( trialPath) then
121
121
success trialPath
122
- with e -> logWarning " SR001" ( e.ToString())
122
+ with e -> logWarningOrError false " SR001" ( e.ToString())
123
123
124
124
#if ! RESHAPED_ MSBUILD
125
125
try
@@ -160,7 +160,7 @@ let internal SimulatedMSBuildResolver =
160
160
//printfn "searching GAC: %s" trialPath
161
161
if FileSystem.SafeExists( trialPath) then
162
162
success trialPath
163
- with e -> logWarning " SR001" ( e.ToString())
163
+ with e -> logWarningOrError false " SR001" ( e.ToString())
164
164
#endif
165
165
166
166
results.ToArray() }
0 commit comments