Don't go looking for MSBuild v12 in SimulatedMSBuildReferenceResolver #6934
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#6921
This probing code is called only when not in the F# tools for Visual Studio. However...
...it looks for MSBuild v12, which is installed only by an older Visual Studio
...which means it only works on Windows
...and VS 2019 doesn't install MSBuild v12
So any modern, released version of F# on Windows requires you to either hunt down the last Visual Studio that installs this old MSBuild toolset, or hunt down the old toolset yourself. And then hope that the reflection code worked. All in service to some slightly better diagnostics for
#loadand#rdirectives in F# script files.