Skip to content

Commit

Permalink
feat: Updated versioning.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Dec 8, 2023
1 parent b54523c commit c52575f
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/libs/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
</ItemGroup>

<PropertyGroup Label="Nuget">
<BUILD_NUMBER Condition="'$(BUILD_NUMBER)' == ''">1</BUILD_NUMBER>
<Version>2.0.$(BUILD_NUMBER)</Version>
<PackageReleaseNotes>$(PACKAGE_RELEASE_NOTES)</PackageReleaseNotes>
<GeneratePackageOnBuild Condition=" '$(Configuration)' == 'Release' ">true</GeneratePackageOnBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
Expand All @@ -30,6 +28,19 @@
<None Include="$(MSBuildThisFileDirectory)../../assets/nuget_icon.png" Pack="true" PackagePath="\" Visible="false" />
<None Include="$(MSBuildThisFileDirectory)../../README.md" Pack="true" PackagePath="\" Visible="false" />
</ItemGroup>

<PropertyGroup Label="Versioning">
<MinVerMinimumMajorMinor>2.1</MinVerMinimumMajorMinor>
<MinVerTagPrefix>v</MinVerTagPrefix>
<MinVerDefaultPreReleaseIdentifiers>dev</MinVerDefaultPreReleaseIdentifiers>
</PropertyGroup>

<ItemGroup Label="Versioning">
<PackageReference Include="MinVer" Version="4.3.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup Label="Source Link">
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.1.1">
Expand Down

0 comments on commit c52575f

Please sign in to comment.