From b56297a7612c4a295a1ce724ecb115567bbcdf88 Mon Sep 17 00:00:00 2001 From: Glen Date: Sun, 8 Feb 2026 16:30:35 +0200 Subject: [PATCH 1/2] Fixed redundant nullable warning suppression expression --- global.json | 2 +- .../Extensions/ServiceCollectionExtensions.cs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/global.json b/global.json index 1e7fdfa95fd..bb62055921f 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "10.0.100", + "version": "10.0.102", "rollForward": "latestMinor" } } diff --git a/src/HotChocolate/Adapters/src/Adapters.Mcp.Core/Extensions/ServiceCollectionExtensions.cs b/src/HotChocolate/Adapters/src/Adapters.Mcp.Core/Extensions/ServiceCollectionExtensions.cs index ff4046cf9a6..ef97baec7f6 100644 --- a/src/HotChocolate/Adapters/src/Adapters.Mcp.Core/Extensions/ServiceCollectionExtensions.cs +++ b/src/HotChocolate/Adapters/src/Adapters.Mcp.Core/Extensions/ServiceCollectionExtensions.cs @@ -30,7 +30,11 @@ public static void AddMcpServices(this IServiceCollection services, string schem static (sp, name) => new McpRequestExecutorProxy( sp.GetRequiredService(), sp.GetRequiredService(), +#if NET10_0_OR_GREATER + (string)name)) +#else (string)name!)) +#endif .AddKeyedSingleton( schemaName, static (sp, name) => new StreamableHttpHandlerProxy( From 3aaaf956cd28558a54fb077e4a9a96cbfa27b61c Mon Sep 17 00:00:00 2001 From: Glen Date: Sun, 8 Feb 2026 16:51:03 +0200 Subject: [PATCH 2/2] Updated other references to SDK version 10.0.102 --- AGENTS.md | 4 ++-- CLAUDE.md | 2 +- build.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index d9331c4176c..c857c231685 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -85,7 +85,7 @@ templates/ # Project templates | Component | Technology | | --------- | -------------- | | Runtime | .NET 8/9/10 | -| SDK | 10.0.100 | +| SDK | 10.0.102 | | Build | Nuke.Build | | Tests | xUnit | | Snapshots | CookieCrumble | @@ -229,7 +229,7 @@ public class Query | Build fails | Run `./init.sh` first | | Missing packages | Run `./build.sh restore` | | Snapshot mismatch | Check `__snapshots__/` for expected output | -| SDK not found | Install .NET SDK 10.0.100 | +| SDK not found | Install .NET SDK 10.0.102 | ## Links diff --git a/CLAUDE.md b/CLAUDE.md index 6e9b03c1e57..57ea00d1bb0 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -77,7 +77,7 @@ templates/ # Project templates ## Technology Stack -- **.NET**: SDK 10.0.100 (supports .NET 8, 9, 10) +- **.NET**: SDK 10.0.102 (supports .NET 8, 9, 10) - **Build System**: Nuke.Build - **Testing**: xUnit with CookieCrumble for snapshots - **Documentation**: Gatsby + React + TypeScript diff --git a/build.sh b/build.sh index 8bcaeebd010..53474596450 100755 --- a/build.sh +++ b/build.sh @@ -43,7 +43,7 @@ else # install older frameworks for tests "$DOTNET_INSTALL_FILE" --install-dir "$DOTNET_DIRECTORY" --version "8.0.416" --no-path "$DOTNET_INSTALL_FILE" --install-dir "$DOTNET_DIRECTORY" --version "9.0.308" --no-path - "$DOTNET_INSTALL_FILE" --install-dir "$DOTNET_DIRECTORY" --version "10.0.100" --no-path + "$DOTNET_INSTALL_FILE" --install-dir "$DOTNET_DIRECTORY" --version "10.0.102" --no-path # If global.json exists, load expected version if [[ -f "$DOTNET_GLOBAL_FILE" ]]; then