Skip to content

Commit

Permalink
Fix AssemblyVersion with MinVer
Browse files Browse the repository at this point in the history
  • Loading branch information
xoofx committed Apr 3, 2022
1 parent 9c62d44 commit 88bca64
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Tomlyn/Tomlyn.props
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,12 @@
<!--Add support for sourcelink-->
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.*" PrivateAssets="All" />
</ItemGroup>

<Target Name="PatchVersion" AfterTargets="MinVer">
<PropertyGroup>
<!--The minor version is like a major version because Major is 0, need to remove this when will be >= 1.0-->
<AssemblyVersion>$(MinVerMajor).$(MinVerMinor).0.0</AssemblyVersion>
</PropertyGroup>
</Target>

</Project>

0 comments on commit 88bca64

Please sign in to comment.