NuGet / Home

Repo for NuGet Client issues
Other
1.5k stars 252 forks source link

The nuget pm ui lets me make selections for things it will actually not install #6924

Open StingyJack opened 6 years ago

StingyJack commented 6 years ago

Details about Problem

NuGet product used (NuGet.exe | VS UI | Package Manager Console | dotnet.exe): VSUI

NuGet version (x.x.x.xxx): VS 15.6.7

VS version (if appropriate): 15.6.7

OS version (i.e. win10 v1607 (14393.321)): Win 10, broken start menu edition

Worked before? If so, with which NuGet version: dont know

Detailed repro steps so we can see the same problem

  1. Open a solution in VS. Solution has a nuget.config in the same folder with three sources defined. nuget.org, my in house repo, and a local temporary folder used for testing packages

  2. Open the NuPM UI, it should show "Installed" list. The package source selected is for the local temp folder (because I selected it last time the window was open?)

  3. Select a package from the installed list to install into a project that does not have it yet. Put a check next to the project in the projects list. Pick a version.

  4. Click install.

Expected, the package I selected is installed.

Actual: the package is not installed and the output window says

Attempting to gather dependency information for package 'Our.BarcodeDecode.1.2.0.3' with respect to project 'UnitTest\OurDerviceHostTests', targeting '.NETFramework,Version=v4.6.2'
Package 'Our.BarcodeDecode 1.2.0.3' is not found in the following primary source(s): 'C:\yadda\localNugetTempPackages'. Please verify all your online package sources are available (OR) package id, version are specified correctly.`

And if you arent paying close attention, you wont notice the package didn't install.

All the sources are indeed available. If I change the source to the in house repo (where this package does live), it installs correctly.

The UI shouldnt let me make the selection if it wont execute the direction.

zhili1208 commented 6 years ago

is this installed package "Our.BarcodeDecode 1.2.0.3" in you global packages folder "C:\users[username].nuget\packages"?

StingyJack commented 6 years ago

yes, since 04/24