Skip to content

Commit 658705b

Browse files
Merge pull request #2 from stephanprobst/feature/include-version-json-in-publish
Feature: Include version.json in publish output
2 parents dc2ecc4 + 967f530 commit 658705b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/SimpleBranchVersioning/build/SimpleBranchVersioning.targets

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ else
6767
<VersionFileOutputPath Condition="'$(VersionFileOutputPath)' == ''">$([System.IO.Path]::Combine('$(MSBuildProjectDirectory)', '$(OutputPath)', 'version.json'))</VersionFileOutputPath>
6868
</PropertyGroup>
6969
<GenerateVersionFileTask AssemblyPath="$(TargetPath)" OutputPath="$(VersionFileOutputPath)" />
70+
<ItemGroup>
71+
<ContentWithTargetPath Include="$(VersionFileOutputPath)" TargetPath="version.json" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest" />
72+
</ItemGroup>
7073
</Target>
7174

7275
<!-- Task to read PackageVersion from version.json for NuGet packaging -->

0 commit comments

Comments
 (0)