如何使 MSBuild 自动将所有间接引用复制到输出(bin)文件夹
Subj.
"Automatically" is essential here. References from GAC must not be copied.
I've seen e.g. VS2008.NET: Getting a referenced project’s dependencies to copy to main project’s bin folder, and this isn't interesting for me. I'd like all the dependencies get copied automatically.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于 C++ 项目,即 *.vcxproj 设置
属性。对于 C# 项目,即 *.csproj 设置
属性。确保没有任何内容覆盖这些属性。在我为主要的大型产品进行构建的这些年里,我从来没有做过任何不同的事情。如果你必须做任何其他聪明的黑客,你肯定做错了什么。
For C++ projects, i.e. *.vcxproj set the
<OutDir>
property.for C# projects, i.e. *.csproj set the
<OutputPath>
property.Make sure nothing overwrites those properties. In all my years doing builds for major, large products, I've never had to do anything different. If you have to do any other clever hack, you are surely doing something wrong.
使用构建后事件
编辑
use post build event
EDIT