Skip to content

Commit 669e1de

Browse files
authored
Merge pull request #238 from SourceDotNET/dotnet11
Dotnet 11
2 parents d6db22b + f3faa23 commit 669e1de

50 files changed

Lines changed: 163 additions & 275 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/build.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
os: [windows-latest, ubuntu-latest, macos-15-intel, macos-latest]
14-
configuration: [Debug, Release]
14+
configuration: [Debug, Release, "Debug (Dedicated)", "Release (Dedicated)"]
1515
include:
1616
- os: ubuntu-latest
1717
configuration: Release
@@ -22,19 +22,19 @@ jobs:
2222
with:
2323
submodules: recursive
2424

25-
- uses: actions/setup-dotnet@v5
25+
- uses: actions/setup-dotnet@v5.4.0
2626
with:
27-
dotnet-version: 10.0.x
27+
dotnet-version: 11.0.x
2828

2929
- name: Build
30-
run: dotnet build Source.NET.slnx -c ${{ matrix.configuration }}
30+
run: dotnet build Source.NET.slnx -c "${{ matrix.configuration }}"
3131

3232
- name: Test
33-
run: dotnet test --project Source.Common.Tests/Source.Common.Tests.csproj -c ${{ matrix.configuration }} --no-build ${{ matrix.coverage && '--coverage --coverage-output-format cobertura --coverage-output coverage.cobertura.xml --coverage-settings Source.Common.Tests/coverage.settings.xml --results-directory TestResults' || '' }}
33+
run: dotnet test --project Source.Common.Tests/Source.Common.Tests.csproj -c "${{ matrix.configuration }}" --no-build ${{ matrix.coverage && '--coverage --coverage-output-format cobertura --coverage-output coverage.cobertura.xml --coverage-settings Source.Common.Tests/coverage.settings.xml --results-directory TestResults' || '' }}
3434

3535
- name: Coverage report
3636
if: matrix.coverage
37-
uses: danielpalme/ReportGenerator-GitHub-Action@5
37+
uses: danielpalme/ReportGenerator-GitHub-Action@v5
3838
with:
3939
reports: TestResults/coverage.cobertura.xml
4040
targetdir: CoverageReport

‎.vscode/tasks.json‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
"--no-restore",
2323
"${workspaceFolder}/Source.Dedicated/Source.Dedicated.csproj",
2424
"-p:WarningLevel=0",
25-
"-c",
26-
"Debug (Dedicated)"
25+
"-p:Configuration=Debug%20(Dedicated)"
2726
],
2827
"problemMatcher": "$msCompile"
2928
}

‎Dependencies/OpenGL/OpenGL46.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net10.0</TargetFrameworks>
3+
<TargetFrameworks>net11.0</TargetFrameworks>
44
<EnableDefaultItems>false</EnableDefaultItems>
55
<AssemblyName>OpenGL46</AssemblyName>
66
<RootNamespace>OpenGL46</RootNamespace>

‎Directory.Build.props‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<Project>
2+
<PropertyGroup>
3+
<IsDependency Condition="$(MSBuildProjectDirectory.StartsWith('$(MSBuildThisFileDirectory)Dependencies'))">true</IsDependency>
4+
<IsAnalyzer Condition="$(MSBuildProjectName.StartsWith('Source.CodeAnalysis'))">true</IsAnalyzer>
5+
</PropertyGroup>
6+
7+
<PropertyGroup Condition="'$(IsDependency)' != 'true' And '$(IsAnalyzer)' != 'true'">
8+
<TargetFramework>net11.0</TargetFramework>
9+
<ImplicitUsings>enable</ImplicitUsings>
10+
<Nullable>enable</Nullable>
11+
</PropertyGroup>
12+
13+
<PropertyGroup Condition="'$(IsDependency)' != 'true'">
14+
<Configurations>Debug;Release;Debug (Dedicated);Release (Dedicated)</Configurations>
15+
</PropertyGroup>
16+
217
<PropertyGroup>
318
<Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
419
</PropertyGroup>
@@ -56,7 +71,7 @@
5671
<PlatformTarget Condition="'$(PlatformTarget)' == ''">x64</PlatformTarget>
5772
</PropertyGroup>
5873

59-
<PropertyGroup Condition="$(MSBuildProjectName.StartsWith('Source.CodeAnalysis'))">
74+
<PropertyGroup Condition="'$(IsAnalyzer)' == 'true'">
6075
<PlatformTarget>AnyCPU</PlatformTarget>
6176
</PropertyGroup>
6277

‎Directory.Packages.props‎

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<Project>
2+
<PropertyGroup>
3+
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
4+
</PropertyGroup>
5+
6+
<ItemGroup>
7+
<PackageVersion Include="Aspose.Drawing" Version="26.10.0" />
8+
<PackageVersion Include="Box3D.Sharp" Version="0.1.2" />
9+
<PackageVersion Include="cef.runtime.linux-x64" Version="154.0.34" />
10+
<PackageVersion Include="cef.runtime.win-x64" Version="154.0.34" />
11+
<PackageVersion Include="CefGlue.Next.Core" Version="154.8037.98" />
12+
<PackageVersion Include="CommunityToolkit.HighPerformance" Version="8.4.2" />
13+
<PackageVersion Include="DStruct.NET" Version="1.2.0" />
14+
<PackageVersion Include="FreeImage-dotnet-core" Version="4.3.6" />
15+
<PackageVersion Include="FreeTypeSharp" Version="3.1.0" />
16+
<PackageVersion Include="K4os.Hash.xxHash" Version="1.0.8" />
17+
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="11.0.0" />
18+
<PackageVersion Include="NLayer" Version="1.16.0" />
19+
<PackageVersion Include="Pastel" Version="6.0.1" />
20+
<PackageVersion Include="PInvoke.Gdi32" Version="0.7.124" />
21+
<PackageVersion Include="PInvoke.User32" Version="0.7.124" />
22+
<PackageVersion Include="ppy.SDL3-CS" Version="2026.1002.1" />
23+
<PackageVersion Include="SevenZip" Version="19.0.0" />
24+
<PackageVersion Include="SharpCompress" Version="0.50.8" />
25+
<PackageVersion Include="SharpZipLib" Version="1.4.2" />
26+
<PackageVersion Include="Snappier" Version="1.3.1" />
27+
<PackageVersion Include="SQLitePCLRaw.bundle_e_sqlite3" Version="3.0.5" />
28+
</ItemGroup>
29+
30+
<ItemGroup>
31+
<PackageVersion Include="Microsoft.CodeAnalysis" Version="3.3.1" />
32+
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4" />
33+
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.8.0" />
34+
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.3.1" />
35+
</ItemGroup>
36+
37+
<ItemGroup>
38+
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Analyzer.Testing.MSTest" Version="1.1.0" />
39+
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.CodeFix.Testing.MSTest" Version="1.1.0" />
40+
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.CodeRefactoring.Testing.MSTest" Version="1.1.0" />
41+
<PackageVersion Include="Microsoft.CodeAnalysis.VisualBasic.Analyzer.Testing.MSTest" Version="1.1.0" />
42+
<PackageVersion Include="Microsoft.CodeAnalysis.VisualBasic.CodeFix.Testing.MSTest" Version="1.1.0" />
43+
<PackageVersion Include="Microsoft.CodeAnalysis.VisualBasic.CodeRefactoring.Testing.MSTest" Version="1.1.0" />
44+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
45+
<PackageVersion Include="Microsoft.Testing.Extensions.CodeCoverage" Version="18.12.0" />
46+
<PackageVersion Include="MSTest.TestAdapter" Version="1.3.2" />
47+
<PackageVersion Include="MSTest.TestFramework" Version="1.3.2" />
48+
<PackageVersion Include="Newtonsoft.Json" Version="13.0.1" />
49+
<PackageVersion Include="NuGet.Common" Version="5.11.7" />
50+
<PackageVersion Include="NuGet.Packaging" Version="5.11.7" />
51+
<PackageVersion Include="NuGet.Protocol" Version="5.11.7" />
52+
<PackageVersion Include="System.Formats.Asn1" Version="6.0.1" />
53+
<PackageVersion Include="System.Net.Http" Version="4.3.4" />
54+
<PackageVersion Include="System.Security.Cryptography.ProtectedData" Version="4.7.0" />
55+
<PackageVersion Include="System.Text.RegularExpressions" Version="4.3.1" />
56+
<PackageVersion Include="xunit.v3" Version="4.0.3" />
57+
</ItemGroup>
58+
</Project>

‎Game.Assets/Game.Assets.csproj‎

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

3-
<PropertyGroup>
4-
<TargetFramework>net10.0</TargetFramework>
5-
<ImplicitUsings>enable</ImplicitUsings>
6-
<Nullable>enable</Nullable>
7-
<Configurations>Debug;Release;Debug (Dedicated);Release (Dedicated)</Configurations>
8-
</PropertyGroup>
9-
103
<ItemGroup>
114
<Compile Include="..\Usings\GlobalUsings.cs" Link="Usings/GlobalUsings.cs" />
125
</ItemGroup>

‎Game.Client/Game.Client.csproj‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
<!-- Project Settings -->
32
<PropertyGroup>
4-
<TargetFramework>net10.0</TargetFramework>
5-
<ImplicitUsings>enable</ImplicitUsings>
6-
<Nullable>enable</Nullable>
73
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
8-
<Configurations>Debug;Release;Debug (Dedicated);Release (Dedicated)</Configurations>
94
</PropertyGroup>
105

116
<!-- Project References -->
@@ -41,6 +36,6 @@
4136
<ProjectReference Include="../Source.CodeAnalysis.EntityFactories/Source.CodeAnalysis.EntityFactories.csproj" PrivateAssets="all" ReferenceOutputAssembly="false" OutputItemType="Analyzer" />
4237
</ItemGroup>
4338
<ItemGroup>
44-
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlite3" Version="3.0.5" />
39+
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlite3" />
4540
</ItemGroup>
4641
</Project>

‎Game.Lua/Game.Lua.csproj‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
4-
<TargetFramework>net10.0</TargetFramework>
5-
<ImplicitUsings>enable</ImplicitUsings>
6-
<Nullable>enable</Nullable>
7-
<Configurations>Debug;Release;Debug (Dedicated);Release (Dedicated)</Configurations>
84
</PropertyGroup>
95

106
<ItemGroup>

‎Game.MenuSystem/Game.MenuSystem.csproj‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
32
<PropertyGroup>
4-
<TargetFramework>net10.0</TargetFramework>
5-
<ImplicitUsings>enable</ImplicitUsings>
6-
<Nullable>enable</Nullable>
73
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
8-
<Configurations>Debug;Release;Debug (Dedicated);Release (Dedicated)</Configurations>
94
</PropertyGroup>
105

116
<ItemGroup>
@@ -31,7 +26,7 @@
3126
</ItemGroup>
3227

3328
<ItemGroup>
34-
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlite3" Version="3.0.5" />
29+
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlite3" />
3530
</ItemGroup>
3631

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

33
<PropertyGroup>
4-
<TargetFramework>net10.0</TargetFramework>
54
<OutputType>Exe</OutputType>
6-
<ImplicitUsings>enable</ImplicitUsings>
7-
<Nullable>enable</Nullable>
85
<IsPackable>false</IsPackable>
96
<IsTestProject>true</IsTestProject>
10-
<Configurations>Debug;Release;Debug (Dedicated);Release (Dedicated)</Configurations>
117
<OutputPath>bin\$(Configuration)\</OutputPath>
128
</PropertyGroup>
139

@@ -20,8 +16,8 @@
2016
</ItemGroup>
2117

2218
<ItemGroup>
23-
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" Version="18.12.0" />
24-
<PackageReference Include="xunit.v3" Version="4.0.1" />
19+
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" />
20+
<PackageReference Include="xunit.v3" />
2521
</ItemGroup>
2622

2723
</Project>

0 commit comments

Comments
 (0)