Skip to content

Commit b5caeb3

Browse files
committed
Use MinVer to version packages.
1 parent 3085667 commit b5caeb3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/publish-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
run: dotnet test --configuration Release tests\MySqlConnector.Tests
3535

3636
- name: Pack
37-
run: dotnet pack --configuration Release --no-build --version-suffix $(Get-Date -Format "'preview'yyyyMMddHHmmss'+${{ github.sha }}'")
37+
run: dotnet pack --configuration Release --no-build
3838

3939
- name: Install NuGet
4040
run: choco install nuget.commandline

src/Directory.Build.props

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<Project>
22

33
<PropertyGroup>
4-
<VersionPrefix>1.0.0</VersionPrefix>
54
<SignAssembly>true</SignAssembly>
65
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
76
<AssemblyOriginatorKeyFile>..\..\MySqlConnector.snk</AssemblyOriginatorKeyFile>
@@ -19,6 +18,7 @@
1918
<EmbedUntrackedSources>true</EmbedUntrackedSources>
2019
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2120
<NoWarn>$(NoWarn);1591;NU5105</NoWarn>
21+
<MinVerDefaultPreReleasePhase>beta</MinVerDefaultPreReleasePhase>
2222
</PropertyGroup>
2323

2424
<PropertyGroup Condition=" '$(GITHUB_ACTIONS)' == 'true' OR '$(APPVEYOR)' == 'True' OR '$(TF_BUILD)' == 'True' ">
@@ -28,6 +28,10 @@
2828

2929
<ItemGroup>
3030
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
31+
<PackageReference Include="MinVer" Version="2.3.0">
32+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
33+
<PrivateAssets>all</PrivateAssets>
34+
</PackageReference>
3135
</ItemGroup>
3236

3337
<ItemGroup>

0 commit comments

Comments
 (0)