From 4ae730cafa8b1e98972017dd0b54b68f913ab642 Mon Sep 17 00:00:00 2001 From: Leonid Pershin Date: Thu, 11 Jun 2026 22:20:52 +0300 Subject: [PATCH] CI: build with the .NET 10 SDK Roslyn 5.3.0 packages (asset-handles generator) ship analyzers built against compiler 4.12+, which the SDK 8 toolchain cannot load (CS9057). The target framework stays net8.0; CLAUDE.md documents the SDK floor. Co-Authored-By: Claude Fable 5 --- .github/workflows/ci.yml | 4 +++- CLAUDE.md | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d1fc747..6b5d190 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,9 +10,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + # Сборка требует SDK 10+: Roslyn-пакеты 5.3.0 (генератор ассет-хендлов) + # не загружаются компилятором из SDK 8. TargetFramework остаётся net8.0. - uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.0.x + dotnet-version: 10.0.x - name: Build run: dotnet build MrGameEng.sln --configuration Release - name: Test diff --git a/CLAUDE.md b/CLAUDE.md index ec7d3cd..223ac73 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -47,6 +47,9 @@ dotnet build MrGameEng.sln dotnet test MrGameEng.sln ``` +Building requires the .NET 10+ SDK (Roslyn 5.3 packages used by the asset-handles +generator do not load under the SDK 8 compiler); the target framework stays net8.0. + ## Architecture rules - ECS-first: components are plain data (`struct` implementing `IComponent`),