Skip to content

Commit 31917c0

Browse files
committed
add .NET10
1 parent 1881d86 commit 31917c0

File tree

8 files changed

+28
-9
lines changed

8 files changed

+28
-9
lines changed

src/Box2D.NET.Samples/Box2D.NET.Samples.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
5+
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
66
<IsPackable>false</IsPackable>
77
<ServerGarbageCollection>true</ServerGarbageCollection>
88
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

src/Box2D.NET.Samples/SampleApp.cs

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
// SPDX-License-Identifier: MIT
44

55
using System;
6+
using System.Globalization;
67
using System.IO;
78
using System.Numerics;
9+
using System.Runtime;
810
using System.Runtime.InteropServices;
911
using Box2D.NET.Samples.Helpers;
1012
using ImGuiNET;
@@ -62,6 +64,23 @@ public int Run(string[] args)
6264

6365
SampleFactory.Shared.LoadSamples();
6466
SampleFactory.Shared.SortSamples();
67+
68+
var currentCulture = CultureInfo.CurrentCulture;
69+
string bitness = Environment.Is64BitOperatingSystem ? "64-bit" : "32-bit";
70+
71+
var workingDirectory = Directory.GetCurrentDirectory();
72+
Logger.Information($"Working directory - {workingDirectory}");
73+
Logger.Information($"OS Version - {Environment.OSVersion} {bitness}");
74+
Logger.Information($"{RuntimeInformation.OSArchitecture} {RuntimeInformation.OSDescription}");
75+
Logger.Information($"{RuntimeInformation.ProcessArchitecture} {RuntimeInformation.FrameworkDescription}");
76+
Logger.Information($"Dotnet - {Environment.Version.ToString()} culture({currentCulture.Name})");
77+
Logger.Information($"Processor Count : {Environment.ProcessorCount}");
78+
79+
Logger.Information($"Server garbage collection : {(GCSettings.IsServerGC ? "Enabled" : "Disabled")}");
80+
Logger.Information($"Current latency mode for garbage collection: {GCSettings.LatencyMode}");
81+
Logger.Information("");
82+
83+
Logger.Information($"ImGui.Net - version({ImGui.GetVersion()})");
6584

6685
Window.PrioritizeGlfw();
6786

@@ -79,13 +98,13 @@ public int Run(string[] args)
7998
_context.glfw.WindowHint(WindowHintInt.ContextVersionMinor, 3);
8099
_context.glfw.WindowHint(WindowHintBool.OpenGLForwardCompat, true);
81100
_context.glfw.WindowHint(WindowHintOpenGlProfile.OpenGlProfile, OpenGlProfile.Core);
82-
101+
83102
// MSAA
84103
_context.glfw.WindowHint(WindowHintInt.Samples, 4);
85104
options.Samples = 4;
86105

87106
B2Version version = b2GetVersion();
88-
options.Title = $"Box2D.NET Version {version.major}.{version.minor}.{version.revision}";
107+
options.Title = $"Box2D.NET Version {version.major}.{version.minor}.{version.revision}, {RuntimeInformation.FrameworkDescription} {RuntimeInformation.ProcessArchitecture}";
89108

90109
unsafe
91110
{

src/Box2D.NET.Shared/Box2D.NET.Shared.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-
<TargetFrameworks>netstandard2.1;net8.0;net9.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.1;net8.0;net9.0;net10.0</TargetFrameworks>
55
<PackageId>Box2D.NET.Shared</PackageId>
66
<PackageReadmeFile>README.md</PackageReadmeFile>
77
<Authors>ikpil</Authors>

src/Box2D.NET/Box2D.NET.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-
<TargetFrameworks>netstandard2.1;net8.0;net9.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.1;net8.0;net9.0;net10.0</TargetFrameworks>
55
<PackageId>Box2D.NET</PackageId>
66
<PackageReadmeFile>README.md</PackageReadmeFile>
77
<Authors>ikpil</Authors>

test/Box2D.NET.Test/Box2D.NET.Test.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-
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
55
<IsPackable>false</IsPackable>
66
</PropertyGroup>
77

tools/Box2D.NET.Benchmark/Box2D.NET.Benchmark.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
5+
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
66
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
77
<IsPackable>false</IsPackable>
88
</PropertyGroup>

tools/Box2D.NET.CommentConverter/Box2D.NET.CommentConverter.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
5+
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
66
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
77
<IsPackable>false</IsPackable>
88
</PropertyGroup>

tools/Box2D.NET.Copyright/Box2D.NET.Copyright.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
5+
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
66
<IsPackable>false</IsPackable>
77
</PropertyGroup>
88

0 commit comments

Comments
 (0)