From 008cba1072543ab617a85c3278b75bf7307ce5bc Mon Sep 17 00:00:00 2001 From: Ruk Doe Date: Wed, 11 Nov 2026 10:09:19 +0900 Subject: [PATCH] =?UTF-8?q?.NET=2011=20=E3=81=AB=E4=B8=8A=E3=81=92?= =?UTF-8?q?=E3=82=8B=20(SDK=2011.0.100=E3=83=BBnet11.0=E3=83=BBTUnit=201.8?= =?UTF-8?q?3.0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit .NET 11 の正式版 (2026-11-10) が出たので、TargetFramework と CI の SDK を上げる。 Dockerfile は先に 11.0 の SDK と runtime-deps になっているので変えない。 - TargetFramework を net11.0 に - CI の dotnet-version を 11.0.100 に (#56 の分) - CodeQL の共有の workflow に dotnet-version: 11.x を渡す (既定の 10.x では net11.0 を組めない) - TUnit を 1.83.0 に (#57 の分) - Aizuchi.Core の Microsoft.Extensions.Logging.Abstractions の参照を外す (.NET 11 から Microsoft.NETCore.App に入っていて、参照を残すと NU1510 が出る) - README の版 Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01T8TqVdo6LUrWKdVQgbScVU --- .github/workflows/codeql.yml | 4 +++- .github/workflows/test.yml | 2 +- Directory.Build.props | 2 +- README.md | 2 +- src/Aizuchi.Core/Aizuchi.Core.csproj | 7 +++---- tests/Aizuchi.Tests.csproj | 2 +- 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index be1931e..2c44401 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -30,5 +30,7 @@ jobs: uses: 5ym/repo-config/.github/workflows/codeql.yml@main with: languages: '["actions", "csharp"]' - # ソリューションごと。.NET は共有の側の既定 (10.x の最新) + # ソリューションごと csharp-build: dotnet build Aizuchi.slnx + # 共有の側の既定は 10.x で net11.0 を組めないので渡す (global.json は置いていない) + dotnet-version: 11.x diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3496a9e..67e4953 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v7 - uses: actions/setup-dotnet@v6 with: - dotnet-version: 10.0.404 + dotnet-version: 11.0.100 # TUnit はテストプロジェクト自体が実行ファイル - run: dotnet run --project tests/Aizuchi.Tests.csproj - name: Helm lint diff --git a/Directory.Build.props b/Directory.Build.props index 55fd8d8..b277de9 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - net10.0 + net11.0 enable enable diff --git a/README.md b/README.md index 2e74a1b..fbbb773 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # aizuchi チャットで相槌を打つ AI ボット。**コネクタ(Slack …)× プロバイダ(Claude …)× 道具(GitHub、OpenProject …)** を -差し替えられる器で、.NET 10 Native AOT の単一バイナリ。Socket Mode なので公開 URL も Ingress も要らず、 +差し替えられる器で、.NET 11 Native AOT の単一バイナリ。Socket Mode なので公開 URL も Ingress も要らず、 k3s に Helm で置けば動く。 SaaS の有料「Slack 連携」の置き換え先も兼ねる。外部サービスの webhook を受けてチャンネルに流すときだけ `/webhooks/` を Ingress に出す。 diff --git a/src/Aizuchi.Core/Aizuchi.Core.csproj b/src/Aizuchi.Core/Aizuchi.Core.csproj index 8d84a66..212f81b 100644 --- a/src/Aizuchi.Core/Aizuchi.Core.csproj +++ b/src/Aizuchi.Core/Aizuchi.Core.csproj @@ -1,6 +1,5 @@ - - - - + diff --git a/tests/Aizuchi.Tests.csproj b/tests/Aizuchi.Tests.csproj index 5be0f4a..1fc3533 100644 --- a/tests/Aizuchi.Tests.csproj +++ b/tests/Aizuchi.Tests.csproj @@ -6,7 +6,7 @@ Exe - +