diff --git a/appveyor.yml b/appveyor.yml index 112c272..fa2bdf2 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -45,7 +45,7 @@ install: - ps: | # Install the required .NET SDK Invoke-WebRequest "https://dot.net/v1/dotnet-install.ps1" -OutFile "./dotnet-install.ps1" - ./dotnet-install.ps1 -Channel LTS -InstallDir 'C:\Program Files\dotnet' + ./dotnet-install.ps1 -JSonFile ./global.json -InstallDir 'C:\Program Files\dotnet' # Remove the script so it doesn't "pollute" the build Remove-Item -Path .\dotnet-install.ps1 diff --git a/global.json b/global.json new file mode 100644 index 0000000..99c2f86 --- /dev/null +++ b/global.json @@ -0,0 +1,6 @@ +{ + "sdk": { + "version": "9.0.305", + "rollForward": "feature" + } +}