有没有办法在安装 NuGet 包时自动接受许可证?
我创建了自己的 NuGet 包,它依赖于另一个第 3 方 NuGet 包。此第 3 方包要求您接受许可证。我的 NuGet 包在工作中内部使用,并且只会发布到我们的内部提要。我们的项目中有预构建步骤,可以在存在新包时自动安装/更新对我的包的引用。但是,nuget [install|update]
失败,因为它“无法解决对第 3 方许可证的依赖关系”。有没有办法让许可证通过命令行或作为 nuspec 中的属性自动接受?
I created a NuGet package of my own that has a dependency on another 3rd party NuGet package. This 3rd party package requires that you accept the license. My NuGet package is used internally at work and will only be published to our internal feed. We have prebuild steps in our projects to automatically install/update references to my package when a new one exists. However, nuget [install|update]
fails because it is "Unable to resolve dependency" to the 3rd party license. Is there a way to have the license automatically accepted either thru the command line or as an attribute in the nuspec ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题最终出在我们调用安装和更新的方式上。我们传入的源参数仅包含我们的内部服务器。
The problem ended up being with the way we were calling install and update. We passed in the source param which only contained our internal server.