Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9266585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:21:12+00:00 2026-06-18T14:21:12+00:00

Some context: I have 4 nuget packages with dependencies. They are all in pre-release

  • 0

Some context:

I have 4 nuget packages with dependencies. They are all in pre-release mode, and they evolve from alpha to “stable” at their own pace. I want to be able to specify in the dependency definition that prereleases should be included, but when the “stable” version is available, it should update to the stable version.

In the NuGet Docs the rules for versioning are defining [ and ] to include the version number you specify and ( and ) to exlude the version number you specify.

Some examples on the impact of the versions in the nuspec file:

 <dependencies>
     <dependency id="MyComponent" version="1.2.0" />
 </dependencies>

==> This will install MyComponent 1.2.0 or higher. (not including prerelease 1.2.0-alpha)

 <dependencies>
     <dependency id="MyComponent" version="[1.2.0" />
 </dependencies>

==> This will install MyComponent 1.2.0 or higher. (not including prerelease 1.2.0-alpha)

 <dependencies>
     <dependency id="MyComponent" version="[1.2.0,2)" />
 </dependencies>

==> This will install MyComponent 1.2.0 until but not including version 2.0.0. (not including prerelease 1.2.0-alpha but includes prerelease 2.0.0-alpha)

Currently I set:

 <dependencies>
     <dependency id="MyComponent" version="(1.1.32767" />
 </dependencies>

But I find this a very ugly way and it does not really reflect the reality. (What if version 1.1.32767.1 exists?)

I would like to know how to specify that you wish to include prerelease versions in the minimum version?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T14:21:13+00:00Added an answer on June 18, 2026 at 2:21 pm

    There’s one important thing to note:

    Depending on a pre-release makes the produced package itself also a prerelease.

    It makes sense that by default pre-releases are ignored when defining the version range of dependencies because it would alter the version of the package being produced (without knowing which version to pick).

    Ideally, the algorithm that checks for the version range of dependencies during installation performs a check whether the consumed package is a pre-release or not, and then either includes or excludes pre-release dependencies within the allowed version range.

    I’m not sure whether this is currently the case, but looking at your question I don’t think it is. You might want to log a feature request (or submit a pull request?) on http://nuget.codeplex.com

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First of all some context : I have a form, where I post back
Context I'm trying to have some "plugins" (I'm not sure this is the correct
I have to execute some code in the context of the main thread. I
I have a function called PreProcessSource, which allocates a boost::wave::context and does some preprocessing;
First some context: I have an MVC3 .net project which, for the sake of
Some context here...I have a System.Windows.Window that is used to display a modal message
Say I have some context where variables are set and a λ-function is called
Some context: (Feel free to skip ahead) I have a module that processes complex
I guess I have to set some context before I explain the problem I
Some Context: We currently have 5 versions of our site (US, UK, CA, AU,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.