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

Use global.json to pin .Net Core SDK version and update it from 2.1.402 to 2.1.602 #909

Merged
merged 9 commits into from
Apr 8, 2019

Conversation

bergmeister
Copy link
Contributor

@bergmeister bergmeister commented Apr 7, 2019

For a reproducible build it is very important to pin the version of the SDK to be used using global.json, see docs here. Locally I cannot build PSES if I have the .Net Core 3 previews or even just 2.2 RTM installed because by default dotnet uses the latest available version.
The existing check for dotnet --version would not work in the build any more because newer versions of dotnet write to stderr when dotnet is invoked with a mismatch to the version in global.json, we use this only to find out whether we need to bootstrap the required version of .Net or not, hence the change to use the --list-sdks paramter

Also remove redundant script:NetCoreTestingFrameworkVersion variable.

@bergmeister bergmeister requested a review from rjmholt as a code owner April 7, 2019 10:05
Copy link
Member

@TylerLeonhardt TylerLeonhardt left a comment

Choose a reason for hiding this comment

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

LGTM thanks for this @bergmeister!

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.

3 participants