Skip to content

Commit 242ef18

Browse files
committed
Migrate solution to .slnx format, enable .NET 10 support, and centralize package management
1 parent 11b96f3 commit 242ef18

File tree

15 files changed

+96
-139
lines changed

15 files changed

+96
-139
lines changed

CodeOfChaos.Types.sln

Lines changed: 0 additions & 103 deletions
This file was deleted.

CodeOfChaos.Types.slnx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<Solution>
2+
<Folder Name="/.dev-tools/">
3+
<File Path="Directory.Packages.props" />
4+
<File Path="global.json" />
5+
<Project Path="src/Tools.CodeOfChaos.Types/Tools.CodeOfChaos.Types.csproj" />
6+
</Folder>
7+
<Folder Name="/.dev-tools/github/">
8+
<File Path=".github/workflows/onPullRequest-TestDotnet.yml" />
9+
<File Path=".github/workflows/release.yml" />
10+
<File Path=".github/workflows/workflow-todo.yml" />
11+
</Folder>
12+
<Folder Name="/src/">
13+
<Project Path="src/CodeOfChaos.Types.DataSeeder/CodeOfChaos.Types.DataSeeder.csproj" />
14+
<Project Path="src/CodeOfChaos.Types.TypedValueStore/CodeOfChaos.Types.TypedValueStore.csproj" />
15+
<Project Path="src/CodeOfChaos.Types.UnitOfWork.Contracts/CodeOfChaos.Types.UnitOfWork.Contracts.csproj" />
16+
<Project Path="src/CodeOfChaos.Types.UnitOfWork/CodeOfChaos.Types.UnitOfWork.csproj" />
17+
<Project Path="src/CodeOfChaos.Types/CodeOfChaos.Types.csproj" />
18+
</Folder>
19+
<Folder Name="/tests/">
20+
<Project Path="tests/Benchmarks.CodeOfChaos.Types.TypedValueStore/Benchmarks.CodeOfChaos.Types.TypedValueStore.csproj" />
21+
<Project Path="tests/Tests.CodeOfChaos.Types.DataSeeder/Tests.CodeOfChaos.Types.DataSeeder.csproj" />
22+
<Project Path="tests/Tests.CodeOfChaos.Types.TypedValueStore/Tests.CodeOfChaos.Types.TypedValueStore.csproj" />
23+
<Project Path="tests/Tests.CodeOfChaos.Types.UnitOfWork/Tests.CodeOfChaos.Types.UnitOfWork.csproj" />
24+
<Project Path="tests/Tests.CodeOfChaos.Types/Tests.CodeOfChaos.Types.csproj" />
25+
</Folder>
26+
</Solution>

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+
<!-- Enable central package management, https://learn.microsoft.com/en-us/nuget/consume-packages/Central-Package-Management -->
4+
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
5+
</PropertyGroup>
6+
<!-- .NET 10 -->
7+
<ItemGroup Condition="'$(TargetFramework)' == 'net10.0'">
8+
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="10.0.0" />
9+
<PackageVersion Include="Microsoft.EntityFrameworkCore.InMemory" Version="10.0.0" />
10+
</ItemGroup>
11+
<!-- .NET 9 -->
12+
<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
13+
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="[9.0.11, 10.0.0)" />
14+
<PackageVersion Include="Microsoft.EntityFrameworkCore.InMemory" Version="[9.0.11, 10.0.0)" />
15+
</ItemGroup>
16+
<!-- Common packages for all frameworks -->
17+
<ItemGroup>
18+
<PackageVersion Include="CodeOfChaos.CliArgsParser.Library" Version="5.1.3" />
19+
<PackageVersion Include="CodeOfChaos.Extensions" Version="0.84.6" />
20+
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="10.0.0" />
21+
<PackageVersion Include="Microsoft.Extensions.Hosting.Abstractions" Version="10.0.0" />
22+
<PackageVersion Include="BenchmarkDotNet" Version="0.15.6" />
23+
<PackageVersion Include="Microsoft.Extensions.Logging" Version="10.0.0" />
24+
<PackageVersion Include="JetBrains.Annotations" Version="2025.2.2" />
25+
<PackageVersion Include="Moq" Version="4.20.72" />
26+
<PackageVersion Include="TUnit" Version="1.1.10" />
27+
<PackageVersion Include="Bogus" Version="35.6.5" />
28+
</ItemGroup>
29+
</Project>

global.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"test": {
3+
"runner": "Microsoft.Testing.Platform"
4+
}
5+
}

src/CodeOfChaos.Types.DataSeeder/CodeOfChaos.Types.DataSeeder.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFrameworks>net9.0;net10.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<RootNamespace>CodeOfChaos.Types</RootNamespace>
@@ -34,8 +34,8 @@
3434
</ItemGroup>
3535

3636
<ItemGroup>
37-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.10" />
38-
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="9.0.10" />
37+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" />
38+
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" />
3939
</ItemGroup>
4040

4141
</Project>

src/CodeOfChaos.Types.TypedValueStore/CodeOfChaos.Types.TypedValueStore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFrameworks>net9.0;net10.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<RootNamespace>CodeOfChaos.Types</RootNamespace>

src/CodeOfChaos.Types.UnitOfWork.Contracts/CodeOfChaos.Types.UnitOfWork.Contracts.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFrameworks>net9.0;net10.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

@@ -30,7 +30,7 @@
3030
</ItemGroup>
3131

3232
<ItemGroup>
33-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.10" />
33+
<PackageReference Include="Microsoft.EntityFrameworkCore" />
3434
</ItemGroup>
3535

3636
</Project>

src/CodeOfChaos.Types.UnitOfWork/CodeOfChaos.Types.UnitOfWork.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFrameworks>net9.0;net10.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

@@ -28,7 +28,7 @@
2828
</ItemGroup>
2929

3030
<ItemGroup>
31-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.10" />
31+
<PackageReference Include="Microsoft.EntityFrameworkCore" />
3232
</ItemGroup>
3333

3434
<ItemGroup>

src/CodeOfChaos.Types/CodeOfChaos.Types.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFrameworks>net9.0;net10.0</TargetFrameworks>
55
<LangVersion>latest</LangVersion>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
@@ -33,7 +33,7 @@
3333
</ItemGroup>
3434

3535
<ItemGroup>
36-
<PackageReference Include="CodeOfChaos.Extensions" Version="0.83.2" />
36+
<PackageReference Include="CodeOfChaos.Extensions"/>
3737
</ItemGroup>
3838

3939
<ItemGroup>

src/Tools.CodeOfChaos.Types/Tools.CodeOfChaos.Types.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<LangVersion>latest</LangVersion>
6-
<TargetFramework>net9.0</TargetFramework>
6+
<TargetFrameworks>net9.0;net10.0</TargetFrameworks>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<Nullable>enable</Nullable>
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="CodeOfChaos.CliArgsParser.Library" Version="5.1.2" />
12+
<PackageReference Include="CodeOfChaos.CliArgsParser.Library" />
1313
</ItemGroup>
1414

1515
</Project>

0 commit comments

Comments
 (0)