Skip to content

Commit 4b106fd

Browse files
committed
workaround to compile, Microsoft.Build.Utilities.ToolLocationHelper doesnt exists
1 parent 9d7c9a7 commit 4b106fd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/fsharp/ReferenceResolution.fs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,15 @@ module internal MSBuildResolver =
161161

162162

163163
let GetPathToDotNetFrameworkReferenceAssemblies(version) =
164+
#if NETSTANDARD1_6
165+
ignore version
166+
let r : string list = []
167+
r
168+
#else
164169
match Microsoft.Build.Utilities.ToolLocationHelper.GetPathToStandardLibraries(".NETFramework",version,"") with
165170
| null | "" -> []
166171
| x -> [x]
172+
#endif
167173

168174
/// Use MSBuild to determine the version of the highest installed framework.
169175
let HighestInstalledNetFrameworkVersionMajorMinor() =

0 commit comments

Comments
 (0)