-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathrenovate.json5
30 lines (30 loc) · 1.47 KB
/
renovate.json5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
'$schema': 'https://docs.renovatebot.com/renovate-schema.json',
'extends': ['github>Lombiq/renovate-config:default-dotnet.json5'],
'customManagers': [
{
// AnalyzerPackages.props contains NuGet package references in a custom format. Supporting it here.
'customType': 'regex',
'fileMatch': ['(^|/)AnalyzerPackages\\.props$'],
'matchStrings': [
// The capture group names are required as such.
'<AnalyzerPackage Include="(?<depName>[^"]+)" Version="(?<currentValue>[^"]+)"/>'
],
'datasourceTemplate': 'nuget', // #spell-check-ignore-line
'versioningTemplate': 'nuget'
},
],
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,
},
],
}