【发布时间】:2019-01-28 21:31:02
【问题描述】:
我依赖于一个配置文件/xml 文件,我将其打包到一个 nuget 包中,在谷歌上搜索并找到了一两个 SO 帖子,这甚至可能吗?我希望引用 nuget 包的项目将 config/xml 文件复制到构建时的调试/发布输出文件夹中,以使其正常运行。
相关的 SO 帖子:
Copy xml from nuget dependency to output
NuGet doesn't copy config file
http://blog.nuget.org/20160126/nuget-contentFiles-demystified.html
我已经尝试过上述帖子/博客中提到的提示/建议,但没有这样的运气。
这甚至可能吗?如果有,怎么做?
【问题讨论】:
标签: xml configuration nuget