Improved versioning system, part 2

This commit is contained in:
Andrey Akinshin 2017-03-04 15:29:46 +05:00
Родитель 8465329cf8
Коммит 5464e4397a
2 изменённых файлов: 6 добавлений и 7 удалений

Просмотреть файл

@ -39,16 +39,15 @@
<BuildNumber Condition=" '$(BUILD_NUMBER)' != '' ">$(BUILD_NUMBER)</BuildNumber>
<BuildNumber Condition=" '$(BuildNumber)' == '' ">0</BuildNumber>
<PrereleaseLabel Condition=" '$(APPVEYOR_BUILD_NUMBER)' != '' ">-nightly</PrereleaseLabel>
<PrereleaseLabel Condition=" '$(PrereleaseLabel)' == '' ">-develop</PrereleaseLabel>
<PrereleaseLabel>-develop</PrereleaseLabel>
<PrereleaseLabel Condition=" '$(APPVEYOR_BUILD_NUMBER)' != '' "></PrereleaseLabel>
<!-- <PrereleaseLabel></PrereleaseLabel> --> <!-- For release versions only -->
<PrereleaseLabelConstants></PrereleaseLabelConstants>
<PrereleaseLabelConstants Condition=" '$(PrereleaseLabel)' == '-nightly' ">PRERELEASE_NIGHTLY</PrereleaseLabelConstants>
<PrereleaseLabelConstants Condition=" '$(PrereleaseLabel)' == '-develop' ">PRERELEASE_DEVELOP</PrereleaseLabelConstants>
<PrereleaseLabelConstants Condition=" '$(APPVEYOR_BUILD_NUMBER)' != '' ">PRERELEASE_NIGHTLY</PrereleaseLabelConstants>
<DefineConstants>$(DefineConstants);$(PrereleaseLabelConstants)</DefineConstants>
<AssemblyVersion>$(Major).$(Minor).$(Revision).$(BuildNumber)</AssemblyVersion>
<AssemblyFileVersion>$(Major).$(Minor).$(Revision).$(BuildNumber)</AssemblyFileVersion>
<AssemblyInformationalVersion>$(Major).$(Minor).$(Revision).$(BuildNumber)$(PrereleaseLabel)</AssemblyInformationalVersion>

Просмотреть файл

@ -26,7 +26,7 @@ These versions are available from the official NuGet feed.
* Example of `BenchmarkDotNetInfo.FullTitle`: `BenchmarkDotNet v0.10.3`.
### Nightly
If you want to check a nightly prerelease version of the BenchmarkDotNet, add the `https://ci.appveyor.com/nuget/benchmarkdotnet` feed in the `<packageSources>` section of your `NuGet.config`:
If you want to use a nightly version of the BenchmarkDotNet, add the `https://ci.appveyor.com/nuget/benchmarkdotnet` feed in the `<packageSources>` section of your `NuGet.config`:
```xml
<packageSources>
@ -34,9 +34,9 @@ If you want to check a nightly prerelease version of the BenchmarkDotNet, add th
</packageSources>
```
Now you can install the packages from the `bdn-nightly` feed (don't forget to enable the "Include prerelease" checkbox).
Now you can install the packages from the `bdn-nightly` feed.
* Example of the main NuGet package: `BenchmarkDotNet.0.10.3.13-nightly.nupkg`.
* Example of the main NuGet package: `BenchmarkDotNet.0.10.3.13.nupkg`.
* Example of `BenchmarkDotNetInfo.FullTitle`: `BenchmarkDotNet v0.10.3.13-nightly`.
### Develop