Skip to content

Commit 09d8a20

Browse files
committed
Target C# compiler v3.7.0 instead of 3.11.0
This should get it to work on the toolset that shipped with VS 2019 Update 7 instead of requiring Update 11.
1 parent 717dfe9 commit 09d8a20

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

Directory.Build.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
<EmbedUntrackedSources>true</EmbedUntrackedSources>
2727
<IncludeSymbols Condition=" '$(DebugType)' != 'embedded' ">true</IncludeSymbols>
2828
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
29+
30+
<TargetRoslynVersion>3.7.0</TargetRoslynVersion>
2931
</PropertyGroup>
3032

3133
<ItemGroup>

src/CSharpIsNullAnalyzer.CodeFixes/CSharpIsNullAnalyzer.CodeFixes.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</ItemGroup>
2323

2424
<ItemGroup>
25-
<PackageReference Include="Microsoft.CodeAnalysis" Version="3.11.0" />
25+
<PackageReference Include="Microsoft.CodeAnalysis" Version="$(TargetRoslynVersion)" />
2626
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.2" PrivateAssets="all" />
2727
</ItemGroup>
2828

src/CSharpIsNullAnalyzer/CSharpIsNullAnalyzer.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.11.0" PrivateAssets="all" />
8+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="$(TargetRoslynVersion)" PrivateAssets="all" />
99
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.2" PrivateAssets="all" />
1010
</ItemGroup>
1111

test/CSharpIsNullAnalyzer.Tests/CSharpIsNullAnalyzer.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<ItemGroup>
1313
<PackageReference Include="coverlet.msbuild" Version="3.1.0" />
1414
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeFix.Testing.XUnit" Version="1.1.0" />
15-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" version="3.11.0" />
15+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" version="$(TargetRoslynVersion)" />
1616
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
1717
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" />
1818
<PackageReference Include="xunit" Version="2.4.1" />

0 commit comments

Comments
 (0)