Repository navigation
Support .NET 10 and .NET 11 RC3 in one tool package - #550
Conversation
Build both targets with the pinned RC3 SDK, isolate SDK integration dependencies, and verify packaged tool selection and same-major roll-forward. Add compatibility CI and document the pending GA-only check. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
One or more custom setup steps configured for this repository failed during this Copilot code review run: Setup steps run before each review. If the review above is missing context, or no review was posted at all, the failing step above may be the cause. See the workflow run for failure details, fix your setup steps configuration, and re-request a review. Note You can configure setup steps for Copilot code review separately from Copilot cloud agent with a |
There was a problem hiding this comment.
🔵 Needs a closer look
The preserved RC3-built package still requires .NET 11 GA-only execution, and runtime/tool-asset selection remains unconfirmed across the Windows/Linux packaged compatibility matrix.
No open issues 🎉
What changed in this PR
This PR prepares the MCP server for .NET 11 while preserving .NET 10-only support in one dual-targeted tool package. It advances #541 and preserves the RC3-built artifact for later GA-only verification, which remains pending.
Changes:
- Dual-targets the server and tests, pins the RC3 build SDK, and separates framework-specific dependencies.
- Adds Windows/Linux packaged-tool compatibility checks for runtime selection and representative project operations.
- Updates CI, preserves both coverage reports, and documents installation and source-run requirements.
| File | Description |
|---|---|
scripts/test-tool-compatibility.ps1 |
Validates packaged assets, runtime selection, and MCP project operations. |
README.md |
Documents dual-runtime support and installation requirements. |
NuGet.Config |
Adds the public feed needed for RC3 build dependencies. |
global.json |
Pins source builds to the exact RC3 SDK. |
DotNetMcp/DotNetMcp.csproj |
Dual-targets the server with target-specific dependencies and explicit roll-forward. |
DotNetMcp.Tests/Server/McpConformanceTests.cs |
Allows bounded cold-start discovery. |
DotNetMcp.Tests/Server/McpAppsMetaWireFormatTest.cs |
Adds a discovery timeout and test cancellation. |
DotNetMcp.Tests/Scenarios/McpScenarioClient.cs |
Allows bounded cold-start discovery for scenarios. |
DotNetMcp.Tests/DotNetMcp.Tests.csproj |
Dual-targets tests and selects matching logging dependencies. |
doc/testing.md |
Documents dual-target tests, coverage, and packaged compatibility checks. |
doc/telemetry.md |
Adds explicit framework selection to source-run guidance. |
doc/sdk-integration.md |
Explains target-specific SDK integration dependencies. |
doc/releasing.md |
Corrects the build command and notes dual-target builds. |
.github/workflows/tool-compatibility.yml |
Adds isolated compatibility jobs and preserved-artifact GA verification. |
.github/workflows/release-scenarios.yml |
Installs the pinned SDK alongside .NET 10. |
.github/workflows/publish-nuget.yml |
Installs the pinned SDK for publishing. |
.github/workflows/copilot-setup-steps.yml |
Installs the pinned SDK for development setup. |
.github/workflows/codeql.yml |
Installs the pinned SDK for code analysis. |
.github/workflows/build.yml |
Uses the pinned SDK and preserves both coverage reports. |
.github/copilot-instructions.md |
Updates dual-target development and compatibility guidance. |
Review effort: Balanced
Keep existing test selectors, coverage options and both target frameworks while avoiding the pinned SDK's project-discovery regression. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Prepare the server for .NET 11 GA without dropping .NET 10-only users. Ship one dual-targeted package with the existing MCP tool surface on both runtimes, and preserve the RC3-built artifact for later GA-only verification.
Relates to #541
Approach
net10.0;net11.0in the server and tests. Retain the .NET 10 dependency set and use RC3 Template Engine and Hosting dependencies on .NET 11.11.0.100-rc.3.26522.148and explicitly useRollForward=Minor. The generated .NET 11 runtime floor is RC3; crossing a runtime major version is not required for RC3-to-GA.dotnet-toolsfeed for the NuGet 8 RC dependencies that are not yet published on NuGet.org. Those dependencies are bundled in the tool, so consumer installations do not need the feed.Validation
dnxanddotnet tool install --tool-pathchecks in three isolated Windows environments: .NET 10-only, RC3-only, and side-by-side. Each invocation initialized MCP, discovered tools/templates, and created, analyzed, and built a representative project. Neither invocation needed--allow-roll-forward.Pending GA acceptance
GA-only execution has not been verified. The compatibility workflow retains the RC3 package and accepts
rc3_run_idto download and exercise an existing artifact on GA without rebuilding it or installing RC3. This PR intentionally uses a non-closing issue reference until that acceptance criterion is satisfied. Linux compatibility execution is configured in CI; the local packaged-tool runs were on Windows.