Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
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
Contributor

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