将支持库添加到 NuGet 包而不添加为引用 [英] Adding supporting libraries to NuGet package without adding as references

查看:49
本文介绍了将支持库添加到 NuGet 包而不添加为引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一组 DLL:一些是为了由项目直接引用,而另一些只是支持这些 DLL 而不是为了直接交互.我知道如何将文件添加为 NuGet 的项目引用:将它们放在 lib 文件夹中.但是如何让 DLL 在构建过程中被获取而不是项目引用?

I have a group of DLLs: some are meant to be directly referenced by the project and others are just supporting those DLLs and aren't meant for direct interaction. I know how to add files to be project references for NuGet: put them in the lib folder. But how do I get DLLs to be around to get picked up during builds but not be project references?

推荐答案

关于 NuGet CodePlex 讨论的 pranavkm 将我指向这里:

pranavkm on the NuGet CodePlex discussions pointed me here:

http://docs.nuget.org/docs/reference/nuspec-参考#Specifying_Explicit_Assembly_References

这篇关于将支持库添加到 NuGet 包而不添加为引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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