Skip to content

Commit acb16c2

Browse files
committed
Update packages used by analyzer tests
Also teach renovate how to find and update these automatically going forward.
1 parent 4444389 commit acb16c2

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/renovate.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,13 @@
5252
"matchJsonata": [ "sharedVariableName='CodeAnalysisVersion'" ],
5353
"enabled": false
5454
}
55+
],
56+
"customManagers": [
57+
{
58+
"customType": "regex",
59+
"datasourceTemplate": "nuget",
60+
"fileMatch": ["test/Microsoft.VisualStudio.Threading.Analyzers.Tests/Helpers/ReferencesHelper.cs"],
61+
"matchStrings": ["PackageIdentity\\(\"(?<packageName>[^\"]+)\", \"(?<currentValue>[^\"]+)\"\\)"]
62+
}
5563
]
5664
}

test/Microsoft.VisualStudio.Threading.Analyzers.Tests/Helpers/ReferencesHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ internal static class ReferencesHelper
1616
#error Fix TFM conditions
1717
#endif
1818
.WithPackages(ImmutableArray.Create(
19-
new PackageIdentity("System.Collections.Immutable", "5.0.0"),
20-
new PackageIdentity("System.Threading.Tasks.Extensions", "4.5.4"),
19+
new PackageIdentity("System.Collections.Immutable", "6.0.0"),
20+
new PackageIdentity("System.Threading.Tasks.Extensions", "4.6.0"),
2121
new PackageIdentity("Microsoft.Bcl.AsyncInterfaces", "6.0.0")));
2222

2323
internal static readonly ImmutableArray<string> VSSDKPackageReferences = ImmutableArray.Create(new string[]

0 commit comments

Comments
 (0)