[英]Nuget package don't have dependency dlls in their nupkg zip
I published a package(.net461) to a feed, this package imports several other feeds by NuGet manager.我向一个提要发布了一个包(.net461),这个 package 导入了 NuGet 经理的其他几个提要。
But when I download the package, I found the nupkg zip file doesn't have dependency dlls in lib/net461 folder.但是当我下载 package 时,我发现 nupkg zip 文件在 lib/net461 文件夹中没有依赖 dll。 I could only see the project dll itself and no dependency dlls.
我只能看到项目 dll 本身,没有依赖 dll。 I am confused on how nuget take care of these dependencies, and how things work if the dependency dll is not there?
我对 nuget 如何处理这些依赖关系感到困惑,如果依赖关系 dll 不存在,事情如何工作? Appreciate any helps!
感谢任何帮助!
Nuget does not include the dependencies, it references them, by adding an information about what other packages need to be downloaded. Nuget 不包括依赖项,它通过添加有关需要下载其他包的信息来引用它们。
The easiest way to see them is to use the NugetPackageManager (from here ).查看它们的最简单方法是使用 NugetPackageManager(来自此处)。 If you open the nupkg file with this tool, you can see the dependencies of your package at the bottom of the package metadata.
如果您使用此工具打开 nupkg 文件,您可以在 package 元数据的底部看到您的 package 的依赖关系。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.