如何创建具有嵌套依赖项的Nuget包 [英] How to create Nuget package with nested dependencies
问题描述
我正在研究.NET Core解决方案.对于解决方案中的一个项目,我需要构建一个Nuget程序包.
I'm working on a .NET Core solution. For one of the projects within the solution, I need to build a Nuget package.
项目A在解决方案中具有对另一个项目B的引用,被设置为项目引用.项目B依赖于Nuget程序包C.
Project A has a reference to another project B in the solution, set up as a project reference. Project B has a dependency on a Nuget package C.
现在,当我为A创建一个Nuget程序包时,它包含A.dll和B.dll,但不包括C.dll
Now, when I create a Nuget package for A, it includes A.dll and B.dll but not C.dll
有人可以帮我解决这个问题吗?如何包含所有3个.dll?
Can someone help me figure this out? How can I include all 3 .dlls?
谢谢,安迪
推荐答案
请参见 https://github.com/NuGet/Home/issues/3891 向nuget客户团队请求 dotnet.exe pack
的功能请求.该问题中存在变通方法和辩论.
See https://github.com/NuGet/Home/issues/3891 for the feature request for dotnet.exe pack
to the nuget client team. There are workarounds and debates in that issue.
Thx,Rob Relyea,NuGet客户团队
Thx, Rob Relyea, NuGet Client Team
这篇关于如何创建具有嵌套依赖项的Nuget包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!