Skip to content

Commit

Permalink
use windows-2019 to fix ccov issue (#1316)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-epure-sonarsource authored Aug 24, 2022
1 parent b3f4dd3 commit 15db33a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Tests/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<LangVersion>10.0</LangVersion>
<LangVersion>9.0</LangVersion>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ trigger:
- master

pool:
vmImage: 'windows-latest'
vmImage: 'windows-2019'

variables:
- group: sonarsource-build-variables
Expand Down
2 changes: 1 addition & 1 deletion src/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<LangVersion>10.0</LangVersion>
<LangVersion>9.0</LangVersion>
</PropertyGroup>
<ItemGroup>
<!-- Enable code generation for resource files -->
Expand Down
2 changes: 1 addition & 1 deletion src/SonarScanner.MSBuild.Shim/PropertiesFileGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ private static void AddRoslynOutputFilePaths(ProjectInfo project, ProjectData pr
private void FixSarifAndEncoding(IList<ProjectInfo> projects, AnalysisProperties analysisProperties)
{
var globalSourceEncoding = GetSourceEncoding(analysisProperties);
var logIfGlobalEncodingIsIgnored = () => logger.LogInfo(Resources.WARN_PropertyIgnored, SonarProperties.SourceEncoding);
Action logIfGlobalEncodingIsIgnored = () => logger.LogInfo(Resources.WARN_PropertyIgnored, SonarProperties.SourceEncoding);
foreach (var project in projects)
{
TryFixSarifReport(project);
Expand Down

0 comments on commit 15db33a

Please sign in to comment.