Skip to content

Commit

Permalink
Fix AssemblyVersion with MinVer (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoofx committed Mar 27, 2022
1 parent 8beb096 commit ccf455d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Markdig/Markdig.targets
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,19 @@
<ItemGroup>
<None Include="../../img/markdig.png" Pack="true" PackagePath="" />
<None Include="../../readme.md" Pack="true" PackagePath="/"/>
<PackageReference Include="MinVer" Version="2.5.0">
<PackageReference Include="MinVer" Version="3.1.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.*" PrivateAssets="All"/>
</ItemGroup>

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

</Project>

0 comments on commit ccf455d

Please sign in to comment.