Skip to content

Commit 55bce01

Browse files
authored
chore: Upgrade to .NET 10 and dependency alignment (#312)
* chore: .NET version bumped to 10.0 * fix: Depth of collider increased so it doesn't fail * feat: Program.cs - Refactor game setup - Refactored `game.Run` to use a new `Start(Scene rootScene)` method instead of an inline lambda. - Added `Start()` method to encapsulate game setup logic. * chore: NuGet packages bumped to latest Stride 4.3 * chore: Docs updated to use .NET 10 * chore: $(StrideVersionNote) note added * feat: Minor content upates * fix: Correct Stride version added * fix: Mising ItemGroups added
1 parent 9e54de4 commit 55bce01

File tree

76 files changed

+156
-156
lines changed

Some content is hidden

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

76 files changed

+156
-156
lines changed

.github/workflows/dotnet-nuget.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: .NET Setup
3232
uses: actions/setup-dotnet@v5
3333
with:
34-
dotnet-version: 8.0.x
34+
dotnet-version: 10.0.x
3535

3636
- name: Set Version in csproj
3737
run: |

.github/workflows/github-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ permissions:
2323
jobs:
2424
build:
2525
name: Build documentation
26-
runs-on: windows-2025
26+
runs-on: windows-latest
2727
steps:
2828
#- name: Display .NET Core information
2929
# run: dotnet --info
@@ -34,7 +34,7 @@ jobs:
3434
- name: Setup .NET
3535
uses: actions/setup-dotnet@v5
3636
with:
37-
dotnet-version: 8.x
37+
dotnet-version: 10.x
3838

3939
# - name: Configure Pages
4040
# id: pages

benchmarks/Stride.CommunityToolkit.Benchmarks/Stride.CommunityToolkit.Benchmarks.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
<DefineConstants>$(DefineConstants);DISABLE_PROFILER_AGENT_CONFIG</DefineConstants>
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="BenchmarkDotNet" Version="0.15.5" />
13-
<PackageReference Include="Microsoft.VisualStudio.DiagnosticsHub.BenchmarkDotNetDiagnosers" Version="18.0.36525.3" />
14-
<PackageReference Include="Stride.Core" Version="4.2.1.2485" />
15-
<PackageReference Include="Stride.Core.Mathematics" Version="4.2.1.2485" />
12+
<PackageReference Include="BenchmarkDotNet" Version="0.15.6" />
13+
<PackageReference Include="Microsoft.VisualStudio.DiagnosticsHub.BenchmarkDotNetDiagnosers" Version="18.3.36714.1" />
14+
<PackageReference Include="Stride.Core" Version="4.3.0.2507" />
15+
<PackageReference Include="Stride.Core.Mathematics" Version="4.3.0.2507" />
1616
</ItemGroup>
1717

1818
</Project>

docs/Stride.CommunityToolkit.Docs.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.Web">
22

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

docs/docfx.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
],
1616
"src": "../src",
1717
"properties": {
18-
"TargetFramework": "net8.0",
18+
"TargetFramework": "net10.0",
1919
"StrideBuildDoc": "true"
2020
}
2121
}
@@ -41,7 +41,7 @@
4141
"_appTitle": "Stride Community Toolkit",
4242
"_enableSearch": true,
4343
"_appLogoPath": "media/stride-logo-blue-toolkit.svg",
44-
"_appFooter": "<div class=\"d-flex flex-column flex-sm-row justify-content-between pt-1 text-center small\"><p >Supported by the <a href=\"https://dotnetfoundation.org/\" target=\"_blank\" rel=\"noopener\">.NET Foundation</a></p><p>Made with <a href=\"https://dotnet.github.io/docfx\">docfx</a></p><p >Stride Community Toolkit Website v.1.0.0.8</p><p>&copy; .NET Foundation and Contributors</p></div>"
44+
"_appFooter": "<div class=\"d-flex flex-column flex-sm-row justify-content-between pt-1 text-center small\"><p >Supported by the <a href=\"https://dotnetfoundation.org/\" target=\"_blank\" rel=\"noopener\">.NET Foundation</a></p><p>Made with <a href=\"https://dotnet.github.io/docfx\">docfx</a></p><p >Stride Community Toolkit Website v.1.0.0.9</p><p>&copy; .NET Foundation and Contributors</p></div>"
4545
},
4646
"fileMetadata": {
4747
"_appTitle": {

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ _disableToc: false
1010

1111
## 👋 Introduction
1212

13-
The [Stride Community Toolkit](https://github.com/stride3d/stride-community-toolkit) is a set of C# helpers and [extensions](manual/animation-extensions/index.md) designed to enhance your experience with the [Stride Game Engine](https://www.stride3d.net/). It simplifies and streamlines routine development tasks 🛠️, making it easier to build applications for Stride using .NET 8 🎉.
13+
The [Stride Community Toolkit](https://github.com/stride3d/stride-community-toolkit) is a set of C# helpers and [extensions](manual/animation-extensions/index.md) designed to enhance your experience with the [Stride Game Engine](https://www.stride3d.net/). It simplifies and streamlines routine development tasks 🛠️, making it easier to build applications for Stride using **.NET 10**.
1414

1515
> [!TIP]
1616
> Experienced developers can dive straight into the source, these helpers are thin wrappers over Stride APIs, meant to accelerate iteration (not hide the engine).

docs/manual/code-only/create-project.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,19 @@ The steps below show how to create a new Stride project using the command line.
66

77
> [!NOTE]
88
> These instructions target Windows. While code-only projects can be built and run on Linux, the [setup is currently more involved](https://github.com/stride3d/stride/issues/2596). We're working to simplify it and will provide official guidance later.
9+
>
10+
> If you're still on Stride 4.2, use `--version 1.0.0-preview.61` instead of `--prerelease`, which targets Stride 4.3.
911
1012
1. Prerequisites: Make sure all prerequisites are installed. See [Getting started](../getting-started.md) for details.
1113
2. Create a console app. You can follow the official [Microsoft tutorial](https://learn.microsoft.com/en-gb/dotnet/core/tutorials/with-visual-studio-code) or run:
1214
```
13-
dotnet new console --framework net8.0 --name YourProjectName
15+
dotnet new console --framework net10.0 --name YourProjectName
1416
```
1517
3. Navigate to the project folder:
1618
```
1719
cd YourProjectName
1820
```
19-
4. Add the core toolkit package:
21+
4. Add toolkit package:
2022
```
2123
dotnet add package Stride.CommunityToolkit.Windows --prerelease
2224
```
@@ -35,9 +37,9 @@ The steps below show how to create a new Stride project using the command line.
3537
```
3638
9. Enjoy Stride: If everything is set up correctly, your project should run.
3739

38-
## Visual Studio 2022 and JetBrains Rider
40+
## Visual Studio 2026 and JetBrains Rider
3941

40-
1. Create a C# Console Application targeting .NET 8.
42+
1. Create a C# Console Application targeting .NET 10.
4143
2. Add the `Stride.CommunityToolkit.Windows` NuGet package (pre-release). This pulls in the required Stride packages.
4244
3. Add the `Stride.CommunityToolkit.Bepu` package (pre-release) to include the Bepu physics integration.
4345
4. Update Program.cs: Paste the example code below.

docs/manual/getting-started.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ This article walks you through the initial steps to use the packages in the Stri
44

55
## 🛠️ Prerequisites
66

7-
Ensure the following are installed. If you're on Stride **4.2+**, these should already be present.
7+
Ensure the following are installed. If you're on Stride **4.3+**, these should already be present.
88

9-
1. Microsoft Visual C++ 2015–2022 Redistributable
10-
- [vcredist_x64.exe](https://aka.ms/vs/17/release/vc_redist.x64.exe) (~25 MB)
9+
1. Microsoft Visual C++ v14 Redistributable (x64)
10+
- [vc_redist.x64.exe](https://aka.ms/vc14/vc_redist.x64.exe) (~19 MB)
1111
- You may be asked to restart your PC after installation.
12-
2. .NET 8 SDK x64: [Download](https://dotnet.microsoft.com/en-us/download) (~200 MB)
12+
2. .NET 10 SDK x64: [Download](https://dotnet.microsoft.com/en-us/download) (~216 MB)
1313
- Verify installation:
1414
```
1515
dotnet --info
1616
```
1717
3. IDE of your choice
18-
- Visual Studio 2022
19-
- [Visual Studio 2022 Community](https://visualstudio.microsoft.com/vs/) (Free)
18+
- Visual Studio 2026
19+
- [Visual Studio 2026 Community](https://visualstudio.microsoft.com/vs/) (Free)
2020
- [Visual Studio Code](https://code.visualstudio.com/) (Free, ~95 MB)
2121
- Install the C# Dev Kit extension
2222
- Restart VS Code to ensure the `dotnet` command works

examples/code-only/Example.Common/Example.Common.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>net8.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

examples/code-only/Example01_Basic2DScene/Example01_Basic2DScene.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-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88

0 commit comments

Comments
 (0)