Nuget dependencies between prerelease packages
<p>The scenario is package management with NuGet.</p>

<p>Suppose you have PackageA that depends on PackageB, you publish both of them so whenever you publish PackageA, you specify the version range of Package B you depends on.</p>

<p>Now both of the packages are automatically published with a Build, and they use SemVer (GitVersion.exe), version 6.0.0 of PackageA declares that it needs at least version 6.0.0 of Package B. This works perfectly if packages are in stable version.</p>

<p>Actually no 6.x.x stable version exists for both package and if I'm installing the prerelease version of PackageA it complains because it needs at least version 6.0.0 of packageB, but packageB has only 6.0.0-prerelease version.</p>

<p>Here is the error. </p>

<p><code>
Unable to resolve dependencies. 'PackageB 6.0.0-unstable0066' is not compatible with 'PackageA 6.0.0-unstable0015 constraint: PackageB (&gt;= 6.0.0)'.
</code></p>

<p>My question is, how is the correct way to manage dependencies from pre-release version of packages? </p>

<p>Thanks.</p>