NuGet Version: 2.6.40514.9077
Repro:
- Uploaded a package to http://staging.nuget.org/ called "newbie.3.0.nupkg" using NuGet Push.
- Created a project called "ConsoleApplication1".
- Tried to install the package "newbie" from http://staging.nuget.org/api/v2/, but it failed, as shown in the figure zero_package_bug.png. The package was not downloaded (Error 404) , but an empty package file is created in cache.
Expected: _If package cannot be downloaded, NuGet.exe should not create a zero-byte package._
Consequence: _If I try again to install the package, it will only retrieve the zero-sized package from cache, without even looking for the repository._
Repro:
- Uploaded a package to http://staging.nuget.org/ called "newbie.3.0.nupkg" using NuGet Push.
- Created a project called "ConsoleApplication1".
- Tried to install the package "newbie" from http://staging.nuget.org/api/v2/, but it failed, as shown in the figure zero_package_bug.png. The package was not downloaded (Error 404) , but an empty package file is created in cache.
Expected: _If package cannot be downloaded, NuGet.exe should not create a zero-byte package._
Consequence: _If I try again to install the package, it will only retrieve the zero-sized package from cache, without even looking for the repository._