简体   繁体   English

Nuget package 在他们的 nupkg zip 中没有依赖 dll

[英]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.

相关问题 Nuget软件包(nupkg)是否与项目的最新更改不同步? - The Nuget package (nupkg) doesn't sync with the project latest changes? 为什么有些 NuGet package dll 被复制到解决方案的 output 目录而有些没有? - Why do some NuGet package dlls get copied to the solution's output directory and some don't? 从本地nuget软件包安装nupkg - Install nupkg from local nuget package 无法生成 Nuget 包(.nupkg 文件) - Cannot generate a Nuget package (.nupkg file) 如何制作具有系统依赖性的 nuget package? - How to make a nuget package that have a system dependency? 如何在 .NET Core 中以编程方式从 nuget 下载 nupkg 包? - How to download a nupkg package from nuget programmatically in .NET Core? 每当我在NetStandard Library Project中使用Nuget包时,是否都必须将DLL从Nuget包复制到输出目录中? - Do I have to copy the DLLs from the Nuget Package to the output directory everytime I use the Nuget Package in NetStandard Library Project 我已经引用了库,但是内置的dll无法输出到bin - I have referenced the Libraries, but built dlls don't output to bin 创建nuget:无法打包引用的dll - creating nuget: can not package referenced dlls NuGet包的从属DLL未复制到输出文件夹 - Dependent DLLs of a NuGet package not copied to output folder
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM