Skip to content

Commit

Permalink
Prepare for unstable/alpha releases of 2.0
Browse files Browse the repository at this point in the history
We can start issuing unstable nuget packages for
people who want to live on the edge!

Will have to ensure the API instability will remain
for the next few weeks at least
  • Loading branch information
alanmcgovern committed Dec 7, 2020
1 parent 09c1860 commit 6bbd8ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/MonoTorrent/MonoTorrent.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<GitIgnoreTagVersion>true</GitIgnoreTagVersion>
<GitCommitsRelativeTo>$([MSBuild]::GetDirectoryNameOfFileAbove ('$(MSBuildThisFileDirectory)', 'version.txt'))\</GitCommitsRelativeTo>

<MonoTorrentReleaseSuffix Condition="Exists ('$(GitCommitsRelativeTo)\alpha.txt')">-alpha</MonoTorrentReleaseSuffix>
<MonoTorrentReleaseSuffix Condition="Exists ('$(GitCommitsRelativeTo)\alpha.txt')">-alpha.unstable</MonoTorrentReleaseSuffix>
<MonoTorrentReleaseSuffix Condition="Exists ('$(GitCommitsRelativeTo)\beta.txt')">-beta</MonoTorrentReleaseSuffix>

<BeforePack>$(BeforePack);SetPackProperties</BeforePack>
Expand All @@ -33,7 +33,10 @@
<!-- want this logic to run if restore hasn't been executed as the 'GitVersion' target won't exist. -->
<Target Name="SetAssemblyVersion" BeforeTargets="GetAssemblyVersion" Condition="'$(RestoreSuccess)' == 'true' And '$(Configuration)' == 'Release' " DependsOnTargets="GitVersion">
<PropertyGroup>
<MonoTorrentFileVersion>$(GitSemVerMajor).$(GitSemVerMinor).$(GitSemVerPatch)</MonoTorrentFileVersion>
<MonoTorrentFileVersion Condition="$(MonoTorrentReleaseSuffix) == ''">$(GitSemVerMajor).$(GitSemVerMinor).$(GitSemVerPatch)</MonoTorrentFileVersion>
<MonoTorrentFileVersion Condition="$(MonoTorrentReleaseSuffix) != ''">$(GitBaseVersion)</MonoTorrentFileVersion>

<MonoTorrentReleaseSuffix Condition="$(MonoTorrentReleaseSuffix) != ''">$(MonoTorrentReleaseSuffix).build$(GitSemVerPatch)</MonoTorrentReleaseSuffix>
<MonoTorrentInformationalVersion>$(MonoTorrentFileVersion)-$(GitBranch)+$(GitCommit)</MonoTorrentInformationalVersion>

<AssemblyVersion Condition="'$(AssemblyVersion)' == ''">$(MonoTorrentABIVersion)</AssemblyVersion>
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.9.0
2.0.0

0 comments on commit 6bbd8ad

Please sign in to comment.