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/Nerdbank.GitVersioning.Tasks/build/Nerdbank.GitVersioning.targets
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -311,9 +311,11 @@
311
311
</PropertyGroup>
312
312
</Target>
313
313
314
-
<!-- Support for MCP servers: stamp version in server.json -->
314
+
<!-- Support for MCP servers: stamp version in server.json
315
+
Set the Condition to NOT run when RIDs and RID are both set and RID-specific packages are being created
316
+
(indicating an inner build which would share the output file with the outer build). -->
315
317
<TargetName="NBGV_StampMcpServerJson"
316
-
Condition="'$(PackageType)' == 'McpServer'"
318
+
Condition="'$(PackageType)' == 'McpServer' and ('$(RuntimeIdentifiers)'=='' or '$(RuntimeIdentifier)'=='' or '$(CreateRidSpecificToolPackages)' != 'true')"
0 commit comments