Skip to content

Commit f1d84b3

Browse files
JerrettDavisclaude
andauthored
chore: migrate to Central Package Management (CPM) (#144)
Move all package version declarations from individual .csproj files into Directory.Packages.props for centralized version management. All projects now reference packages without explicit versions. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent bb938da commit f1d84b3

14 files changed

Lines changed: 3416 additions & 447 deletions

File tree

Directory.Packages.props

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<Project>
2+
<PropertyGroup>
3+
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
4+
</PropertyGroup>
5+
<ItemGroup>
6+
<PackageVersion Include="coverlet.collector" Version="8.0.1" />
7+
<PackageVersion Include="JetBrains.Annotations" Version="2025.2.4" />
8+
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="5.3.0" />
9+
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="5.3.0" />
10+
<PackageVersion Include="Microsoft.Extensions.Configuration" Version="10.0.5" />
11+
<PackageVersion Include="Microsoft.Extensions.Configuration.Abstractions" Version="10.0.5" />
12+
<PackageVersion Include="Microsoft.Extensions.Configuration.Binder" Version="10.0.5" />
13+
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="10.0.5" />
14+
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="10.0.5" />
15+
<PackageVersion Include="Microsoft.Extensions.Hosting.Abstractions" Version="10.0.5" />
16+
<PackageVersion Include="Microsoft.Extensions.Options" Version="10.0.5" />
17+
<PackageVersion Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="10.0.5" />
18+
<PackageVersion Include="Microsoft.Extensions.Options.DataAnnotations" Version="10.0.5" />
19+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.3.0" />
20+
<PackageVersion Include="System.Collections.Immutable" Version="10.0.5" />
21+
<PackageVersion Include="System.Linq.Async" Version="7.0.0" />
22+
<PackageVersion Include="System.Threading.Tasks.Extensions" Version="4.6.3" />
23+
<PackageVersion Include="TinyBDD" Version="0.19.9" />
24+
<PackageVersion Include="TinyBDD.Xunit" Version="0.19.9" />
25+
<PackageVersion Include="xunit" Version="2.9.3" />
26+
<PackageVersion Include="xunit.extensibility.core" Version="2.9.3" />
27+
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5" />
28+
</ItemGroup>
29+
</Project>

src/PatternKit.Core/PatternKit.Core.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<RootNamespace>PatternKit</RootNamespace>
@@ -13,7 +13,7 @@
1313
</ItemGroup>
1414

1515
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
16-
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.6.3" />
16+
<PackageReference Include="System.Threading.Tasks.Extensions" />
1717
</ItemGroup>
1818

1919
</Project>

src/PatternKit.Core/packages.lock.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": 1,
2+
"version": 2,
33
"dependencies": {
44
".NETStandard,Version=v2.0": {
55
"NETStandard.Library": {

src/PatternKit.Examples/PatternKit.Examples.csproj

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
@@ -12,15 +12,15 @@
1212

1313

1414
<ItemGroup>
15-
<PackageReference Include="JetBrains.Annotations" Version="2025.2.4" />
16-
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="10.0.5" />
17-
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="10.0.5" />
18-
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="10.0.5" />
19-
<PackageReference Include="Microsoft.Extensions.Options" Version="10.0.5" />
20-
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="10.0.5" />
21-
<PackageReference Include="Microsoft.Extensions.Options.DataAnnotations" Version="10.0.5" />
22-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.5" />
23-
<PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.5" />
15+
<PackageReference Include="JetBrains.Annotations" />
16+
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" />
17+
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" />
18+
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" />
19+
<PackageReference Include="Microsoft.Extensions.Options" />
20+
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" />
21+
<PackageReference Include="Microsoft.Extensions.Options.DataAnnotations" />
22+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" />
23+
<PackageReference Include="Microsoft.Extensions.Hosting" />
2424
</ItemGroup>
2525

2626

src/PatternKit.Examples/packages.lock.json

Lines changed: 31 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": 1,
2+
"version": 2,
33
"dependencies": {
44
"net10.0": {
55
"JetBrains.Annotations": {
@@ -112,15 +112,6 @@
112112
"Microsoft.Extensions.Options": "10.0.5"
113113
}
114114
},
115-
"Microsoft.Extensions.Configuration": {
116-
"type": "Transitive",
117-
"resolved": "10.0.5",
118-
"contentHash": "8Rx5sqg04FttxrumyG6bmoRuFRgYzK6IVwF1i0/o0cXfKBdDeVpJejKHtJCMjyg9E/DNMVqpqOGe/tCT5gYvVA==",
119-
"dependencies": {
120-
"Microsoft.Extensions.Configuration.Abstractions": "10.0.5",
121-
"Microsoft.Extensions.Primitives": "10.0.5"
122-
}
123-
},
124115
"Microsoft.Extensions.Configuration.CommandLine": {
125116
"type": "Transitive",
126117
"resolved": "10.0.5",
@@ -314,6 +305,16 @@
314305
},
315306
"patternkit.generators.abstractions": {
316307
"type": "Project"
308+
},
309+
"Microsoft.Extensions.Configuration": {
310+
"type": "CentralTransitive",
311+
"requested": "[10.0.5, )",
312+
"resolved": "10.0.5",
313+
"contentHash": "8Rx5sqg04FttxrumyG6bmoRuFRgYzK6IVwF1i0/o0cXfKBdDeVpJejKHtJCMjyg9E/DNMVqpqOGe/tCT5gYvVA==",
314+
"dependencies": {
315+
"Microsoft.Extensions.Configuration.Abstractions": "10.0.5",
316+
"Microsoft.Extensions.Primitives": "10.0.5"
317+
}
317318
}
318319
},
319320
"net8.0": {
@@ -427,15 +428,6 @@
427428
"Microsoft.Extensions.Options": "10.0.5"
428429
}
429430
},
430-
"Microsoft.Extensions.Configuration": {
431-
"type": "Transitive",
432-
"resolved": "10.0.5",
433-
"contentHash": "8Rx5sqg04FttxrumyG6bmoRuFRgYzK6IVwF1i0/o0cXfKBdDeVpJejKHtJCMjyg9E/DNMVqpqOGe/tCT5gYvVA==",
434-
"dependencies": {
435-
"Microsoft.Extensions.Configuration.Abstractions": "10.0.5",
436-
"Microsoft.Extensions.Primitives": "10.0.5"
437-
}
438-
},
439431
"Microsoft.Extensions.Configuration.CommandLine": {
440432
"type": "Transitive",
441433
"resolved": "10.0.5",
@@ -658,6 +650,16 @@
658650
},
659651
"patternkit.generators.abstractions": {
660652
"type": "Project"
653+
},
654+
"Microsoft.Extensions.Configuration": {
655+
"type": "CentralTransitive",
656+
"requested": "[10.0.5, )",
657+
"resolved": "10.0.5",
658+
"contentHash": "8Rx5sqg04FttxrumyG6bmoRuFRgYzK6IVwF1i0/o0cXfKBdDeVpJejKHtJCMjyg9E/DNMVqpqOGe/tCT5gYvVA==",
659+
"dependencies": {
660+
"Microsoft.Extensions.Configuration.Abstractions": "10.0.5",
661+
"Microsoft.Extensions.Primitives": "10.0.5"
662+
}
661663
}
662664
},
663665
"net9.0": {
@@ -771,15 +773,6 @@
771773
"Microsoft.Extensions.Options": "10.0.5"
772774
}
773775
},
774-
"Microsoft.Extensions.Configuration": {
775-
"type": "Transitive",
776-
"resolved": "10.0.5",
777-
"contentHash": "8Rx5sqg04FttxrumyG6bmoRuFRgYzK6IVwF1i0/o0cXfKBdDeVpJejKHtJCMjyg9E/DNMVqpqOGe/tCT5gYvVA==",
778-
"dependencies": {
779-
"Microsoft.Extensions.Configuration.Abstractions": "10.0.5",
780-
"Microsoft.Extensions.Primitives": "10.0.5"
781-
}
782-
},
783776
"Microsoft.Extensions.Configuration.CommandLine": {
784777
"type": "Transitive",
785778
"resolved": "10.0.5",
@@ -1002,6 +995,16 @@
1002995
},
1003996
"patternkit.generators.abstractions": {
1004997
"type": "Project"
998+
},
999+
"Microsoft.Extensions.Configuration": {
1000+
"type": "CentralTransitive",
1001+
"requested": "[10.0.5, )",
1002+
"resolved": "10.0.5",
1003+
"contentHash": "8Rx5sqg04FttxrumyG6bmoRuFRgYzK6IVwF1i0/o0cXfKBdDeVpJejKHtJCMjyg9E/DNMVqpqOGe/tCT5gYvVA==",
1004+
"dependencies": {
1005+
"Microsoft.Extensions.Configuration.Abstractions": "10.0.5",
1006+
"Microsoft.Extensions.Primitives": "10.0.5"
1007+
}
10051008
}
10061009
}
10071010
}

src/PatternKit.Generators.Abstractions/packages.lock.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": 1,
2+
"version": 2,
33
"dependencies": {
44
".NETStandard,Version=v2.0": {
55
"NETStandard.Library": {

src/PatternKit.Generators/PatternKit.Generators.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
@@ -23,9 +23,9 @@
2323
</ItemGroup>
2424

2525
<ItemGroup>
26-
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="5.3.0" PrivateAssets="all" />
27-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="5.3.0" PrivateAssets="all" />
28-
<PackageReference Include="System.Collections.Immutable" Version="10.0.5" />
26+
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" PrivateAssets="all" />
27+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" PrivateAssets="all" />
28+
<PackageReference Include="System.Collections.Immutable" />
2929
</ItemGroup>
3030

3131
<ItemGroup>

src/PatternKit.Generators/packages.lock.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": 1,
2+
"version": 2,
33
"dependencies": {
44
".NETStandard,Version=v2.0": {
55
"Microsoft.CodeAnalysis.Analyzers": {
@@ -109,16 +109,17 @@
109109
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
110110
}
111111
},
112+
"patternkit.generators.abstractions": {
113+
"type": "Project"
114+
},
112115
"System.Threading.Tasks.Extensions": {
113-
"type": "Transitive",
116+
"type": "CentralTransitive",
117+
"requested": "[4.6.3, )",
114118
"resolved": "4.6.0",
115119
"contentHash": "I5G6Y8jb0xRtGUC9Lahy7FUvlYlnGMMkbuKAQBy8Jb7Y6Yn8OlBEiUOY0PqZ0hy6Ua8poVA1ui1tAIiXNxGdsg==",
116120
"dependencies": {
117121
"System.Runtime.CompilerServices.Unsafe": "6.1.0"
118122
}
119-
},
120-
"patternkit.generators.abstractions": {
121-
"type": "Project"
122123
}
123124
}
124125
}

test/PatternKit.Examples.Tests/PatternKit.Examples.Tests.csproj

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
@@ -13,17 +13,17 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="coverlet.collector" Version="8.0.1" />
17-
<PackageReference Include="JetBrains.Annotations" Version="2025.2.4" />
18-
<PackageReference Include="Microsoft.Extensions.Configuration" Version="10.0.5" />
19-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.5" />
20-
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="10.0.5" />
21-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.3.0" />
22-
<PackageReference Include="System.Collections.Immutable" Version="10.0.5" />
23-
<PackageReference Include="TinyBDD.Xunit" Version="0.19.8" />
24-
<PackageReference Include="xunit" Version="2.9.3" />
25-
<PackageReference Include="xunit.extensibility.core" Version="2.9.3" />
26-
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
16+
<PackageReference Include="coverlet.collector" />
17+
<PackageReference Include="JetBrains.Annotations" />
18+
<PackageReference Include="Microsoft.Extensions.Configuration" />
19+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" />
20+
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" />
21+
<PackageReference Include="Microsoft.NET.Test.Sdk" />
22+
<PackageReference Include="System.Collections.Immutable" />
23+
<PackageReference Include="TinyBDD.Xunit" VersionOverride="0.19.8" />
24+
<PackageReference Include="xunit" />
25+
<PackageReference Include="xunit.extensibility.core" />
26+
<PackageReference Include="xunit.runner.visualstudio">
2727
<PrivateAssets>all</PrivateAssets>
2828
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2929
</PackageReference>

0 commit comments

Comments
 (0)