Skip to content

Commit

Permalink
Update appveyor.yml for net6 global.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jhmgoossens authored Apr 14, 2024
1 parent 079548f commit dce4ec0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ init:
$env:JAVA_HOME = "C:\Program Files\Java\jdk17"
$env:PATH += ";JAVA_HOME\bin"
}
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
#- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

# scripts that run after cloning repository
install:
Expand Down Expand Up @@ -112,7 +112,8 @@ before_build:
- echo Creating %RELEASE_NAME%-src.zip artefact from projects folder
- call build-third-party-license.bat
- 7z a -tzip -r -x!.git "c:\projects\sonnet\%RELEASE_NAME%-src.zip" c:\projects\*
- choco install dotnet-6.0-sdk
# Add global.json for SonnetWrapper for build error NETSDK1145
- echo { "sdk": { "version": "6.0.0", "rollForward": "latestMinor" } } > MSVisualStudio\v17\SonnetWrapper\global.json
- nuget restore MSVisualStudio\v17\Sonnet.sln
- if not "%sonar_token%"=="" ( SonarScanner.MSBuild.exe begin /k:"%RELEASE_NAME%" /d:"sonar.host.url=https://sonarcloud.io" /d:"sonar.login=%sonar_token%" /o:"jhmgoossens" /d:sonar.c.file.suffixes=- /d:sonar.cpp.file.suffixes=- /d:sonar.objc.file.suffixes=- )

Expand Down

0 comments on commit dce4ec0

Please sign in to comment.