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

Have a single point of reference for the .Net Core SDK version #885

Conversation

bergmeister
Copy link
Collaborator

@bergmeister bergmeister commented Feb 10, 2018

PR Summary

Remove the hard-coded SDK version in the appeyor.yml file and parse the global.json file instead so that the only place referencing the .Net Core SDK version is global.json.

PR Checklist

Note: Tick the boxes below that apply to this pull request by putting an x between the square brackets. Please mark anything not applicable to this PR NA.

  • PR has a meaningful title
    • Use the present tense and imperative mood when describing your changes
  • Summarized changes
  • [NA] User facing documentation needed
  • Change is not breaking
  • [NA] Make sure you've added a new test if existing tests do not effectively test the code changed
  • This PR is ready to merge and is not work in progress
    • If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready

@bergmeister bergmeister changed the title Have a single point of reference for the .Net Core SDK version WIP Have a single point of reference for the .Net Core SDK version Feb 10, 2018
@bergmeister bergmeister reopened this Feb 19, 2018
@bergmeister bergmeister changed the title WIP Have a single point of reference for the .Net Core SDK version Have a single point of reference for the .Net Core SDK version Feb 19, 2018
@bergmeister bergmeister self-assigned this Feb 19, 2018
if (-not ((dotnet --version).StartsWith('2.1.4')))
$globalDotJson = Get-Content .\global.json -Raw | ConvertFrom-Json
$dotNetCoreSDKVersion = $globalDotJson.sdk.version
if (-not ((dotnet --version).StartsWith($dotNetCoreSDKVersion)))
Copy link
Member

Choose a reason for hiding this comment

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

should we be specifying a specific version or just ensuring that the dotnet version is high enough?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't have a strong opinion on this to be honest but if we regularly keep up with the latest SDKs we should not fall behind the versions in the Appveyor images any more. It's probably best to revisit when some of this code gets moved into build modules

@JamesWTruher JamesWTruher merged commit ebc413a into PowerShell:development Feb 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants