Update server.json versioning and packaging logic#4432
Merged
dvoituron merged 2 commits intomicrosoft:dev-v5from Jan 3, 2026
Merged
Conversation
Refactored packaging to copy server.json to the intermediate output directory and update its "version" field to match the build version before packing. Changed hardcoded version from 5.0.0-preview.1 to 0.0.1 in server.json and project metadata. Added MSBuild target to automate version update for consistent packaging.
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request automates the versioning of the MCP server manifest file by introducing an MSBuild target that updates the version fields in server.json to match the package version during the build process.
- Added
UpdateMcpServerJsonVersionMSBuild target to automatically update version fields in server.json before builds - Changed packaging to include the version-updated manifest from the intermediate output directory
- Updated placeholder version from
5.0.0-preview.1to0.0.1in server.json
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/Tools/McpServer/Microsoft.FluentUI.AspNetCore.McpServer.csproj |
Added new MSBuild target to copy and update server.json version field, modified packaging to include the updated file from intermediate directory |
src/Tools/McpServer/.mcp/server.json |
Changed hardcoded version values from 5.0.0-preview.1 to placeholder 0.0.1 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/Tools/McpServer/Microsoft.FluentUI.AspNetCore.McpServer.csproj
Outdated
Show resolved
Hide resolved
…proj Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
dvoituron
approved these changes
Jan 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refactored packaging to copy server.json to the intermediate output directory and update its "version" field to match the build version before packing. Changed hardcoded version from 5.0.0-preview.1 to 0.0.1 in server.json and project metadata. Added MSBuild target to automate version update for consistent packaging.
Pull Request
📖 Description
This pull request updates the packaging process for the MCP server by ensuring that the
server.jsonmanifest always contains the correct package version. It introduces a build target to update the version field before packaging, and adjusts how the manifest is included in the NuGet package.Packaging and versioning improvements:
UpdateMcpServerJsonVersioninMicrosoft.FluentUI.AspNetCore.McpServer.csprojto automatically update theversionfield in.mcp/server.jsonto match the package version before build and packaging. The target copies the manifest to the intermediate directory and performs the replacement.Microsoft.FluentUI.AspNetCore.McpServer.csprojso that the updated manifest from the intermediate directory is packed, ensuring the correct version is included in the NuGet package.Manifest version corrections:
versionfield in.mcp/server.jsonand the manifest'stitlesection to use a placeholder version (0.0.1) instead of the previous preview version, aligning with the new automated versioning process. [1] [2]✅ Checklist
General
Component-specific