简体   繁体   中英

Nuget Package Installation is Not Adding References To Project

I have published a package in Nuget few years ago. From time to time, I was updating it with new versions and all was ok until now. Few days ago I've published an update to Nuget and when I've updated my package, it was installed successfully but it never added any references to my project.

I've even started from blank console applications and tried to add my package. Same problem.

You can try. This is a package

https://www.nuget.org/packages/63BITS-Libraries/

This is how I built my package

包元数据截图

Any ideas?

If you download your nuget package, and unzip it (yep its just a zip file). You will find that your DLL is not in the lib directory.

Typically, inside a nuget package, any dlls need to be in lib/<FrameworkVersion>

For example if your DLL targeted netstandard1.6 then in the nuget package the path to your dll would be lib/netstandard1.6/SixtyThreeBits.Libraries.dll

In your package, your dll is in SixtyThreeBitsLibraries/SixtyThreeBits.Libraries.dll

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