- Notifications
You must be signed in to change notification settings - Fork845
[DRAFT] Use runtime specific, self-contained packages, target .NET 9#6645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Pull Request Overview
This PR updates the MCP server project template to target .NET 9.0 and configures runtime-specific, self-contained packages to improve compatibility and reduce deployment dependencies. The changes enable the creation of multiple platform-specific NuGet packages that include all necessary runtime components.
Key changes:
- Upgrade target framework from .NET 8.0 to .NET 9.0
- Add runtime identifier configuration for major platforms (Windows, Linux, macOS on x64/ARM64)
- Enable self-contained publishing with trimming optimizations
- Update documentation to explain the new multi-package output structure
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| McpServer-CSharp.csproj.in | Template project file updated with .NET 9.0 target, runtime identifiers, and self-contained publishing settings |
| mcpserver.csproj | Integration test snapshot reflecting the same project configuration changes |
| README.md (template) | Updated documentation explaining the new multi-package output structure and runtime identifier concepts |
| README.md (test snapshot) | Integration test snapshot of the updated documentation |
src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/McpServer/McpServer-CSharp/README.md OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
...ensions.AI.Templates.IntegrationTests/Snapshots/mcpserver.Basic.verified/mcpserver/README.md OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
…Server/McpServer-CSharp/README.mdCo-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ationTests/Snapshots/mcpserver.Basic.verified/mcpserver/README.mdCo-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Uh oh!
There was an error while loading.Please reload this page.
Resolve#6560.
This uses the new RID-specific tool packages feature to reduce runtime compatibility issues to "all you need is
dnx".I switched to .NET 9.0 to avoid trimming warnings related to System.Text.Json in .NET 8.
I selected the list of RIDs based on .NET SDK telemetry on the
toolverb.Microsoft Reviewers:Open in CodeFlow