File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
src/Nerdbank.GitVersioning.Tasks/build Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 317317 BeforeTargets =" GenerateNuspec;_GetPackageFiles"
318318 DependsOnTargets =" GetBuildVersion" >
319319 <ItemGroup >
320- <_NBGV_OriginalServerJson Include =" $(MSBuildProjectDirectory)\server.json " Condition =" Exists('$(MSBuildProjectDirectory)\ server.json') " />
320+ <_NBGV_OriginalServerJson Include =" @(None) " Condition =" '%(FileName)'==' server.json'" />
321321 </ItemGroup >
322-
322+
323323 <PropertyGroup >
324- <_NBGV_StampedServerJsonPath >$(IntermediateOutputPath)server.json</_NBGV_StampedServerJsonPath >
324+ <_NBGV_StampedServerJsonPath >$(IntermediateOutputPath)\nb.gv\ server.json</_NBGV_StampedServerJsonPath >
325325 </PropertyGroup >
326-
326+
327327 <!-- Transform server.json with versioned content -->
328328 <Nerdbank .GitVersioning.Tasks.StampMcpServerJson
329329 Condition =" '@(_NBGV_OriginalServerJson)' != ''"
330330 SourceServerJson =" %(_NBGV_OriginalServerJson.Identity)"
331331 OutputServerJson =" $(_NBGV_StampedServerJsonPath)"
332332 Version =" $(Version)" />
333-
333+
334334 <!-- Remove original server.json from packaging and add stamped version -->
335- <ItemGroup Condition =" '$(_NBGV_StampedServerJsonPath)' != ''" >
336- <Content Remove =" server.json" />
337- <None Remove =" server.json" />
338- <Content Include =" $(_NBGV_StampedServerJsonPath)" PackagePath =" server.json" Pack =" true" />
335+ <ItemGroup >
336+ <None Remove =" @(_NBGV_OriginalServerJson)" />
337+ <None Include =" @(_NBGV_OriginalServerJson->'$(_NBGV_StampedServerJsonPath)')" />
339338 </ItemGroup >
340339 </Target >
341340
You can’t perform that action at this time.
0 commit comments