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

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions appveyor.yml
Expand Up @@ -28,10 +28,12 @@ install:
}
- ps: |
# the legacy WMF4 image only has the old preview SDKs of dotnet
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

{
Invoke-WebRequest 'https://dot.net/v1/dotnet-install.ps1' -OutFile dotnet-install.ps1
.\dotnet-install.ps1 -Version 2.1.4
.\dotnet-install.ps1 -Version $dotNetCoreSDKVersion
}

build_script:
Expand Down