Question

This seems to be a simple question but i didnt find a clear answer.

After installing a package with a dll to a sample empty wp7 project, everything seems fine (dependencies are pulled correctly), but a dll itself is not added to project references. And i dont see corresponding settings in the Nuget Package Explorer.

How can i say to nuget to add a lib to references automatically?

Was it helpful?

Solution

As said, the DLL should be placed beneath a "lib" folder inside the package (nupkg). Aside from that it's also recommended to place it in a folder like "lib\net40" if your project depends on features that are new in .NET 4.0.

For more information, read the nuget documentation

OTHER TIPS

As Vincent mentioned, a DLL should be in a Lib folder.

Nuget Package Explorer users should check the package via Tools/Analyze Package

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top