From 2c9e6e72b78c359ffca91408afba6bdce6f3d592 Mon Sep 17 00:00:00 2001 From: Inga Lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Thu, 30 Jul 2020 23:22:50 +0300 Subject: [PATCH] SonarScanner switched from .NET 4.6 to .NET Core --- appveyor.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 30c0347..b6c8f81 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -3,17 +3,17 @@ image: Visual Studio 2019 before_build: - nuget restore - - choco install sonarscanner-msbuild-net46 + - choco install sonarscanner-msbuild-netcoreapp2.0 #- choco install opencover - choco install opencover.portable - choco install codecov build_script: - - SonarScanner.MSBuild.exe begin /key:"EternalArrowBackup" /version:"%APPVEYOR_REPO_COMMIT%" /o:inga-lovinde-github /d:"sonar.host.url=https://sonarcloud.io" /d:"sonar.login=%SONAR_LOGIN%" - msbuild /t:Rebuild EternalArrowBackup.sln - - SonarScanner.MSBuild.exe end /d:"sonar.login=%SONAR_LOGIN%" test_script: + - dotnet "C:\ProgramData\chocolatey\lib\sonarscanner-msbuild-netcoreapp2.0\tools\SonarScanner.MSBuild.dll" begin /key:"EternalArrowBackup" /version:"%APPVEYOR_REPO_COMMIT%" /o:inga-lovinde-github /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="%SONAR_LOGIN%" /d:sonar.cs.opencover.reportsPaths="OpenCover.xml" - dotnet build /t:Rebuild /p:DebugType=full /p:DebugSymbols=true EternalArrowBackup.sln - ps: Get-ChildItem *.Tests.csproj -Recurse | % {C:\ProgramData\chocolatey\lib\opencover.portable\tools\OpenCover.Console -register -target:"C:\Program Files\dotnet\dotnet.exe" -targetargs:"test --no-build --logger:trx;LogFileName=results.trx --filter Category!=Integration $_" -filter:"+[*]* -[*.Tests]*" -showunvisited -mergeoutput -output:OpenCover.xml -oldStyle} + - dotnet "C:\ProgramData\chocolatey\lib\sonarscanner-msbuild-netcoreapp2.0\tools\SonarScanner.MSBuild.dll" end /d:sonar.login="%SONAR_LOGIN%" - codecov -f OpenCover.xml