Building prerelease NuGet package

Thomas Ardal's Avatar

Thomas Ardal

29 Jul, 2015 09:42 AM

I've tried to setup a build producing a prerelease NuGet package without luck. I keep getting this error:

A stable release of a package should not have on a prerelease dependency. Either modify the version spec of dependency "Microsoft.Framework.Logging.Abstractions (1.0.0-beta5)" or update the version field.

The error is cause by the fact that my project reference a prerelease package and therefore also should be prerelease itself. I've tried to do this by specifying the following in appveyor.yml:

version: 1.0.{build}-beta

From what I can see, my repository ( is setup like the example you have seem to get working:

  1. Support Staff 1 Posted by Feodor Fitsner on 29 Jul, 2015 06:55 PM

    Feodor Fitsner's Avatar

    Semver version (e.g. x.y.z-something) can only be set to AssemblyInformationalVersionAttribute. Add this attribute to your AssemblyInfo.cs like here:

  2. Support Staff 2 Posted by Feodor Fitsner on 29 Jul, 2015 06:56 PM

    Feodor Fitsner's Avatar

    AssemblyInformationalVersion is fetched by nuget packaging as package version.

  3. 3 Posted by Thomas Ardal on 29 Jul, 2015 08:12 PM

    Thomas Ardal's Avatar

    That worked! Thanks.

    ons. 29. jul. 2015 20.56 skrev Feodor Fitsner <
    [email blocked]>:

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:58 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac