Skip to content

Commit

Permalink
Downgrading Microsoft.CodeAnalysis.CSharp.CodeStyle and excluding it …
Browse files Browse the repository at this point in the history
…from updates
  • Loading branch information
Piedone committed Dec 25, 2024
1 parent b0bb336 commit 91c60c1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Lombiq.Analyzers/AnalyzerPackages.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<AnalyzerPackage Include="AsyncFixer" Version="1.6.0"/>
<AnalyzerPackage Include="DotNetAnalyzers.DocumentationAnalyzers" Version="1.0.0-beta.59"/>
<AnalyzerPackage Include="Meziantou.Analyzer" Version="2.0.183"/>
<AnalyzerPackage Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="4.11.0"/>
<AnalyzerPackage Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="4.10.0"/>
<AnalyzerPackage Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0"/>
<AnalyzerPackage Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.12.19"/>
<AnalyzerPackage Include="SecurityCodeScan.VS2019" Version="5.6.7"/>
Expand Down
11 changes: 11 additions & 0 deletions renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@
},
],
packageRules: [
{
// Microsoft.CodeAnalysis.CSharp.CodeStyle references Roslyn, and if its version is higher than that of the
// locally installed SDK, it'll emit a "CSC : error CS9057: The analyzer assembly
// '/home/runner/.nuget/packages/microsoft.codeanalysis.csharp.codestyle/4.11.0/analyzers/dotnet/cs/Microsoft.CodeAnalysis.CSharp.CodeStyle.dll'
// references version '4.31.0.0' of the compiler, which is newer than the currently running version
// '4.10.0.0'." error. So, we need to update it manually together with the SDK (and targeted .NET version).
matchPackageNames: [
'Microsoft.CodeAnalysis.CSharp.CodeStyle',
],
enabled: false,
},
{
groupName: 'All packages',
matchUpdateTypes: ['*'],
Expand Down

0 comments on commit 91c60c1

Please sign in to comment.