Installing new version of package from CLI with -ExcludeVersion should remove files from previously installed version #3957
Labels
Functionality:Install
The install command in VS/nuget.exe
Product:NuGet.exe
NuGet.exe
Style:Packages.Config
Milestone
Details about Problem
NuGet product used (NuGet.exe | VS UI | Package Manager Console | dotnet.exe):
NuGet.exe
NuGet version (x.x.x.xxx):
3.3.0
OS version (i.e. win10 v1607 (14393.321)):
Windows - Any
Description:
I would expect that when installing a new version of a package using -ExcludeVersion should also clean up files leftover from the previous version.
Detailed repro steps so we can see the same problem
Install one version of a package using nuget.exe install with -ExcludeVersion
Install different version of same package that doesn't have some of the files contained in the first package - also using -ExcludeVersion
If files existed in the old version that don't exist in the new one, they are not cleaned up and you now you have a mix of files from both versions.
Thanks for considering this.
The text was updated successfully, but these errors were encountered: