In our project we're creating different NuGet packages (using suffixes) for different branches. In the .csproj file I'm trying to specify the specific version of a package that should be used.Package names can be 1.2.3
, 1.2.3-rc001
, or 1.2.3-pr001
.
First issue:I tested using <PackageReference Include="Package.Name" Version="[1.2.3,1.2.6)" />
where there was no 1.2.3. My understanding is it should use the next available version, but now it simply says the selected package is 1.2.3, with "Not available in this source". Updating NuGets also ignores this and simply updates to the latest release, 1.2.10. After that it overwrites the Version in .csproj, so the specified bounds are lost.
Second issue, that falls in with the first, is to specify to only use -pr* or -rc* versions. 1.2.*-pr*
is not a valid option, so maybe our numbering scheme needs changing.