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

Fix 1.26.1 bugs #1016

Merged

Conversation

DustinCampbell
Copy link
Contributor

Fixes #1011
Fixes #1014

This PR addresses a couple of MSBuild discovery issues:

  1. Don't use Mono MSBuild if Microsoft.Build.dll is missing. This can happen on Linux layouts of Mono when the user hasn't installed the msbuild package yet.
  2. Don't use Visual Studio 2017 MSBuild if it is VS 2017 RTM. In this case, the user is encouraged to update VS 2017.

Copy link
Member

@david-driscoll david-driscoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:


// Simple check to see if this is Windows
var platformId = (int)Environment.OSVersion.Platform;
if (platformId <= 3 || platformId == 5)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment explaining where this knowledge came from?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll try to remember where it came from. This is derived from scripts/platform.cake

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh right. It was this:

Member Underlying value
Win32S 0
Win32Windows 1
Win32NT 2
WinCE 3
Unix 4
Xbox 5
MacOSX 6

Will add a comment

@DustinCampbell
Copy link
Contributor Author

cc @akshita31 and @TheRealPiotrP

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.

5 participants