具有多个依赖项的Nuget包 [英] Nuget packages with multiple dependencies

查看:241
本文介绍了具有多个依赖项的Nuget包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我创建了一个父包,它有目标文件的依赖包,当我下载并安装父包时第一个包的目标文件已执行且剩余未执行



问题的原因。如何解决这个问题。



我的尝试:



我不知道任何解决方案,我认为它只会起作用。

Hi,

I created a parent package, it has dependency packages with targets files, when i download and install the parent package the first package's targets file is executed and remaining are not executed.

Any reasons for the problem. how to resolve the issue.

What I have tried:

I don't know any solutions, i thought it'll simply work.

推荐答案

我不确定你的确切问题是什么,因为问题是醒来但你有没有尝试在.nuspec文件中使用依赖属性来确保这些依赖项可以由nuget解决,如果是这样,你的nuspec文件是什么样的?



NUSPEC-DateireferenzfürNuGet| Microsoft Docs [ ^ ]
Hi, I am not sure what your exact problem is because the question is rather wake but have you tried using the dependency property in the .nuspec file to ensure that these dependencies can be resolved by nuget, if so, what does you nuspec file look like?

NUSPEC-Dateireferenz für NuGet | Microsoft Docs[^]


错误来自我的方面我保持所有依赖包的目标名称相同,问题已解决
Mistake is from my side i kept the target name as same for all the dependent packages, issue resolved


这篇关于具有多个依赖项的Nuget包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆