简单的问题。我有一个 NuGet 包项目。此项目引用其他类库项目(它们不是 NuGet 包)。我希望我的 NuGet 包将其引用 DLL 加载到安装该包的项目中。这是可能的,还是我所有引用的类库都需要是 NuGet 包才能将它们指定为依赖项?
TIA
最佳答案
执行 nuget pack
命令时,您可以指定选项 IncludeReferencedProjects .
来自文档:
Indicates that the built package should include referenced projects either as dependencies or as part of the package. If a referenced project has a corresponding .nuspec file that has the same name as the project, then that referenced project is added as a dependency. Otherwise, the referenced project is added as part of the package.
关于c# - 如何继承NuGet包中引用的程序集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45112285/