Environment: VS Enterprise 2015 Update 1, Manager Package Host Console Manager 3.3.0.167
Steps to play: just create a new project (for example, a console application) designed to install .Net 4.5.2 (but also with other versions of .net).
When I install the nuget package, the package is downloaded and it would seem to install without errors. However, nuget does not add a link to the dll. When viewing the packages folder, it turns out that the unpacked .dlls were not unpacked, although the .nupkg file exists and is not corrupted (I can open it with the nuget explorer package and see the contents of the lib folder).
Any idea what could be causing this?
The output in the package manager console is:
PM> install-package log4net -verbose Attempting to gather dependencies information for package 'log4net.2.0.5' with respect to project 'ConsoleApplication4', targeting '.NETFramework,Version=v4.5.2' Attempting to resolve dependencies for package 'log4net.2.0.5' with DependencyBehavior 'Lowest' Resolving actions to install package 'log4net.2.0.5' Resolved actions to install package 'log4net.2.0.5' For adding package 'log4net.2.0.5' to project 'ConsoleApplication4' that targets 'net452'. For adding package 'log4net.2.0.5' to project 'ConsoleApplication4' that targets 'net452'. Adding package 'log4net.2.0.5' to folder 'c:\Projects\ConsoleApplication4\packages' Added package 'log4net.2.0.5' to folder 'c:\Projects\ConsoleApplication4\packages' Added package 'log4net.2.0.5' to 'packages.config' Added file 'packages.config' to project 'ConsoleApplication4'. Successfully installed 'log4net 2.0.5' to ConsoleApplication4
package folder contents:
C:\Projects\ConsoleApplication4\packages\log4net.2.0.5>tree /f . Folder PATH listing for volume OSDisk Volume serial number is 8CE4-F2E5 C:\PROJECTS\CONSOLEAPPLICATION4\PACKAGES\LOG4NET.2.0.5 ¦ log4net.2.0.5.nupkg ¦ +---lib +---net10-full ¦ log4net.xml ¦ +---net11-full ¦ log4net.xml ¦ +---net20-full ¦ log4net.xml ¦ +---net35-client ¦ log4net.xml ¦ +---net35-full ¦ log4net.xml ¦ +---net40-client ¦ log4net.xml ¦ +---net40-full ¦ log4net.xml ¦ +---net45-full log4net.xml
UPDATE: happens with some, but not all nuget packages
source share