I've been getting started with Nuget. Some of my projects allow me to Add Library Package Reference to a Nuget package, but then when I select "Installed Packages" I don't see any packages listed. Why not?
EDIT - I know the answer (see below), was going to answer this myself as a "community service" but can't for another 8hrs due to my lame rep score.
Answer will be: The project already had a packages.config file in the same directory as the csproj file, BUT the packages.config file was not added to the project. Fixed by "Add existing item" and selecting the packages.config file.
Note: in hindsight, the pink '"packages.config" already exists, Skipping' message in the nuget progress window should have alerted me to this.
Hope this helps someone.
When a package is installed globally, it's made available to all users that log into the system. Typically, that means Python and all packages will get installed to a directory under /usr/local/bin/ for a Unix-based system, or \Program Files\ for Windows.
installed. packages scans the DESCRIPTION files of each package found along lib. loc and returns a matrix of package names, library paths and version numbers.
You use the pkgchk command to check installation completeness, path name, file contents, and file attributes of a package. See pkgchk(1M) for more information on all the options. Use the pkginfo command to display information about the packages that are installed on the system.
(Pasted from the question, so this doesn't show up as unanswered)
The project already had a packages.config file in the same directory as the csproj file, BUT the packages.config file was not added to the project. Fixed by "Add existing item" and selecting the packages.config file.
Note: in hindsight, the pink '"packages.config" already exists, Skipping' message in the nuget progress window should have alerted me to this.
In another case, the packages.config file is part of the project, but the definition of the <packages> tag was like <packages xmlns="urn:packages"> rather than the usual <packages> convention. This caused my project to neither restore nor show up any packages. This is confirmed in Visual Studio 2015. Once i remove "urn:packages" all started to work fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With