Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for MSBuild 16 / VS 2019 #2274

Merged
merged 2 commits into from
Mar 16, 2019

Conversation

csmager
Copy link
Contributor

@csmager csmager commented Mar 14, 2019

VS2019 changes the location of MSBuild from e.g. MSBuild\15.0\Bin to MSBuild\Current\Bin. This is noted in the VSWhere Wiki:

Starting in Visual Studio 2019 Preview, MSBuild will use "Current" instead of the major version number to make it easier to invoke for different versions.

This changes the approach to search all folders within MSBuild for Bin\MSBuild.exe and reads the major version from the executable itself.

The fix is as suggested by @vbfox in a comment to the issue. I've tested on my machine with only VS 2019 RC installed, MSBuild 16 is now picked instead of MSBuild 14.

Fixes #2271

VS2019 changes the location of MSBuild from e.g.
MSBuild\15.0\Bin to MSBuild\Current\Bin.

This changes the approach to search all folders within MSBuild for
Bin\MSBuild.exe and reads the major version from the executable itself.
@BlythMeister
Copy link
Contributor

BlythMeister commented Mar 15, 2019

@matthid / @forki maybe we should release a Fake 4 release that supports this new path too? - see #2277 just in case :)

@matthid
Copy link
Member

matthid commented Mar 16, 2019

Ok, thanks for taking care of this!

@matthid matthid merged commit c4564fd into fsprojects:release/next Mar 16, 2019
@csmager csmager deleted the msbuild-16 branch March 16, 2019 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MSBuild doesn't support MSBuild 16 / VS 2019.
4 participants