Quantcast
Channel: WE MOVED to github.com/nuget. This site is not monitored!
Viewing all articles
Browse latest Browse all 7612

Edited Issue: Update-package -reinstall should first check if it can really get that package before uninstalling the existing package [2670]

$
0
0
Create a new console application·        
Open NuGet powershell console
·         Install-package jquery -version 1.4.1
·         Open NuGet settings and disable NuGet official feed
·         Update-package jquery -Reinstall
 
Expected
It shows error that cannot find jquery 1.4.1 package and does NOT uninstall the existing package
 
Actual
It uninstalls the existing package and then says cannot find the package
 
It's not intuitive that "update" operations do not happen in a single transaction. Meaning if it cannot get the same package from any of the sources, it should not leave me in a broken state by uninstalling the existing package


Viewing all articles
Browse latest Browse all 7612

Trending Articles