From 93c656502310ba6e023180c4b0bec05c404d017b Mon Sep 17 00:00:00 2001 From: Joel Verhagen Date: Tue, 22 Jul 2025 18:15:47 -0400 Subject: [PATCH 1/3] Use runtime specific, self-contained packages, target .NET 9 --- .../McpServer/McpServer-CSharp/McpServer-CSharp.csproj.in | 7 ++++++- .../src/McpServer/McpServer-CSharp/README.md | 4 +++- .../Snapshots/mcpserver.Basic.verified/mcpserver/README.md | 4 +++- .../mcpserver.Basic.verified/mcpserver/mcpserver.csproj | 7 ++++++- 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/McpServer/McpServer-CSharp/McpServer-CSharp.csproj.in b/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/McpServer/McpServer-CSharp/McpServer-CSharp.csproj.in index 2eca37df228..7e21ac65f4c 100644 --- a/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/McpServer/McpServer-CSharp/McpServer-CSharp.csproj.in +++ b/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/McpServer/McpServer-CSharp/McpServer-CSharp.csproj.in @@ -1,12 +1,17 @@ - net8.0 + net9.0 Major Exe enable enable + + win-x64;win-arm64;linux-x64;linux-musl-x64;linux-arm64;osx-arm64 + true + true + true McpServer diff --git a/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/McpServer/McpServer-CSharp/README.md b/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/McpServer/McpServer-CSharp/README.md index cb11ac30eb5..45b7c98cffd 100644 --- a/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/McpServer/McpServer-CSharp/README.md +++ b/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/McpServer/McpServer-CSharp/README.md @@ -14,7 +14,9 @@ Please note that this template is currently in an early preview stage. If you ha - See [configuring inputs](https://aka.ms/nuget/mcp/guide/configuring-inputs) for more details. - Pack the project using `dotnet pack`. -The `bin/Release` directory will contain the package file (.nupkg), which can be [published to NuGet.org](https://learn.microsoft.com/nuget/nuget-org/publish-a-package). +The `bin/Release` directory will contain the package files (*.nupkg), which can be [published to NuGet.org](https://learn.microsoft.com/nuget/nuget-org/publish-a-package). + +One .nupkg will be produced for each runtime identifer you selected in the `` property in the .csproj, plus a "root" .nupkg containing pointers to the others. For more information about runtime identifiers in .NET, see the [.NET RID catalog](https://learn.microsoft.com/dotnet/core/rid-catalog). ## Developing locally diff --git a/test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/mcpserver.Basic.verified/mcpserver/README.md b/test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/mcpserver.Basic.verified/mcpserver/README.md index a0bf0fc082d..b7212c1a5f5 100644 --- a/test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/mcpserver.Basic.verified/mcpserver/README.md +++ b/test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/mcpserver.Basic.verified/mcpserver/README.md @@ -14,7 +14,9 @@ Please note that this template is currently in an early preview stage. If you ha - See [configuring inputs](https://aka.ms/nuget/mcp/guide/configuring-inputs) for more details. - Pack the project using `dotnet pack`. -The `bin/Release` directory will contain the package file (.nupkg), which can be [published to NuGet.org](https://learn.microsoft.com/nuget/nuget-org/publish-a-package). +The `bin/Release` directory will contain the package files (*.nupkg), which can be [published to NuGet.org](https://learn.microsoft.com/nuget/nuget-org/publish-a-package). + +One .nupkg will be produced for each runtime identifer you selected in the `` property in the .csproj, plus a "root" .nupkg containing pointers to the others. For more information about runtime identifiers in .NET, see the [.NET RID catalog](https://learn.microsoft.com/dotnet/core/rid-catalog). ## Developing locally diff --git a/test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/mcpserver.Basic.verified/mcpserver/mcpserver.csproj b/test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/mcpserver.Basic.verified/mcpserver/mcpserver.csproj index 468230d16e4..1f3f1ddac14 100644 --- a/test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/mcpserver.Basic.verified/mcpserver/mcpserver.csproj +++ b/test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/mcpserver.Basic.verified/mcpserver/mcpserver.csproj @@ -1,12 +1,17 @@  - net8.0 + net9.0 Major Exe enable enable + + win-x64;win-arm64;linux-x64;linux-musl-x64;linux-arm64;osx-arm64 + true + true + true McpServer From 806d2b9c774feb82e3b63455e8add58fba58717d Mon Sep 17 00:00:00 2001 From: Joel Verhagen Date: Tue, 22 Jul 2025 18:22:06 -0400 Subject: [PATCH 2/3] Update src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/McpServer/McpServer-CSharp/README.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../src/McpServer/McpServer-CSharp/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/McpServer/McpServer-CSharp/README.md b/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/McpServer/McpServer-CSharp/README.md index 45b7c98cffd..12b110d8531 100644 --- a/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/McpServer/McpServer-CSharp/README.md +++ b/src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/McpServer/McpServer-CSharp/README.md @@ -16,7 +16,7 @@ Please note that this template is currently in an early preview stage. If you ha The `bin/Release` directory will contain the package files (*.nupkg), which can be [published to NuGet.org](https://learn.microsoft.com/nuget/nuget-org/publish-a-package). -One .nupkg will be produced for each runtime identifer you selected in the `` property in the .csproj, plus a "root" .nupkg containing pointers to the others. For more information about runtime identifiers in .NET, see the [.NET RID catalog](https://learn.microsoft.com/dotnet/core/rid-catalog). +One .nupkg will be produced for each runtime identifier you selected in the `` property in the .csproj, plus a "root" .nupkg containing pointers to the others. For more information about runtime identifiers in .NET, see the [.NET RID catalog](https://learn.microsoft.com/dotnet/core/rid-catalog). ## Developing locally From e3fe653c62996fed7ca4090fc83122a334536ef7 Mon Sep 17 00:00:00 2001 From: Joel Verhagen Date: Tue, 22 Jul 2025 18:22:17 -0400 Subject: [PATCH 3/3] Update test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/mcpserver.Basic.verified/mcpserver/README.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../Snapshots/mcpserver.Basic.verified/mcpserver/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/mcpserver.Basic.verified/mcpserver/README.md b/test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/mcpserver.Basic.verified/mcpserver/README.md index b7212c1a5f5..7104e80c068 100644 --- a/test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/mcpserver.Basic.verified/mcpserver/README.md +++ b/test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/mcpserver.Basic.verified/mcpserver/README.md @@ -16,7 +16,7 @@ Please note that this template is currently in an early preview stage. If you ha The `bin/Release` directory will contain the package files (*.nupkg), which can be [published to NuGet.org](https://learn.microsoft.com/nuget/nuget-org/publish-a-package). -One .nupkg will be produced for each runtime identifer you selected in the `` property in the .csproj, plus a "root" .nupkg containing pointers to the others. For more information about runtime identifiers in .NET, see the [.NET RID catalog](https://learn.microsoft.com/dotnet/core/rid-catalog). +One .nupkg will be produced for each runtime identifier you selected in the `` property in the .csproj, plus a "root" .nupkg containing pointers to the others. For more information about runtime identifiers in .NET, see the [.NET RID catalog](https://learn.microsoft.com/dotnet/core/rid-catalog). ## Developing locally