简体   繁体   中英

Nuget Package Explorer didnt add a *.dll (not *.Resources.dll) to references

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?

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

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM