Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

How to prevent an unlisted package from being downloaded when Update-Package is being used

$
0
0

I have created a package on Nuget.org. However, when doing one of the first releases, I set an incorrect assembly version format, which is used as the package version.

Let's say that the version was 1.0.180305.0 (build date). However, I do not want to use this format, I want a simpler thing with Major.Minor.BuildNumber format, i.e. 1.0.10, 1.0.11, 1.0.12, etc., where I increment Major and Minor manually and the Build number increments automatically.

I have unlisted the 1.0.180305.0 version, so that it does not appear anywhere.

This works OK, however when using Update-Package [PackageName] in the Package Manager Console, it automatically gets the 1.0.180305.0 version, even though its unlisted, because the version number is 'larger'.

How do I prevent this?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>