You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/McpServer/McpServer-CSharp/.template.config/template.json
Copy file name to clipboardExpand all lines: src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/McpServer/McpServer-CSharp/McpServer-CSharp.csproj.in
Copy file name to clipboardExpand all lines: src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/McpServer/McpServer-CSharp/README.md
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,26 @@
1
1
# MCP Server
2
2
3
-
This README was created using the C# MCP server project template. It demonstrates how you can easily create an MCP server using C# and publish it as a NuGet package.
3
+
This README was created using the C# MCP server project template.
4
+
It demonstrates how you can easily create an MCP server using C# and publish it as a NuGet package.
5
+
6
+
#### ---#if (SelfContained)
7
+
The MCP server is built as a self-contained application and does not require the .NET runtime to be installed on the target machine.
8
+
However, since it is self-contained, it must be built for each target platform separately.
9
+
By default, the template is configured to build for:
10
+
*`win-x64`
11
+
*`win-arm64`
12
+
*`osx-arm64`
13
+
*`linux-x64`
14
+
*`linux-arm64`
15
+
*`linux-musl-x64`
16
+
17
+
If your users have require more platforms to be supported, update the list of runtime identifiers in the project's `<RuntimeIdentifers />` element.
18
+
#### ---#else
19
+
The MCP server is built as a framework-dependent application and requires the .NET runtime to be installed on the target machine.
20
+
The application is configured to roll-forward to the next highest major version of the runtime if one is available on the target machine.
21
+
If an applicable .NET runtime is not available, the MCP server will not start.
22
+
Consider building the MCP server as a self-contained application if you want to avoid this dependency.
23
+
#### ---#endif
4
24
5
25
See [aka.ms/nuget/mcp/guide](https://aka.ms/nuget/mcp/guide) for the full guide.
0 commit comments