Skip to content

Commit

Permalink
Fix AssemblyVersion and PackageVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
bording committed Apr 11, 2023
1 parent 10cd32c commit 4dc402a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions LibGit2Sharp/LibGit2Sharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,12 @@
</PropertyGroup>
</Target>

<Target Name="AdjustVersions" AfterTargets="MinVer">
<PropertyGroup>
<AssemblyVersion>$(MinVerMajor).$(MinVerMinor).0.0</AssemblyVersion>
<PackageVersion>$(MinVerMajor).$(MinVerMinor).$(MinVerPatch)</PackageVersion>
<PackageVersion Condition="'$(MinVerPreRelease)' != ''">$(PackageVersion)-$(MinVerPreRelease)</PackageVersion>
</PropertyGroup>
</Target>

</Project>

0 comments on commit 4dc402a

Please sign in to comment.