复制二进制文件到物理文件的位置上后生成事件在VS2010 [英] Copy bin files on to Physical file location on Post Build event in VS2010
本文介绍了复制二进制文件到物理文件的位置上后生成事件在VS2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想我的bin文件夹中生成的DLL复制到文件的位置上后生成事件在VS2010。
I want to copy my dll generated in bin folder to a file location on Post Build Event in vs2010.
有人能帮助我这一点。
感谢
推荐答案
您要添加的东西,如:
xcopy /Q /Y "$(TargetPath)" "C:\path\to\somewhere\"
上的生成事件 为您生成后事件 / Y
将从提示您确认一个覆盖阻止它。
to you post-build event on the Build Events tab in the project properties page. The /Y
will stop it from prompting you to confirm an overwrite.
如果您还需要复制 .PDB
的文件,你需要这样的:
If you also need to copy the .pdb
file, you will need something like this:
xcopy /Q /Y "$(TargetDir)$(TargetName).*" "C:\path\to\somewhere\"
您可以通过点击编辑生成后看到更多的替代令牌(在$ XXX值)... 的在属性选项卡按钮,然后扩大的宏>> 按钮。
You can see more substitution tokens (the $XXX values) by clicking the Edit Post-build... button in the properties tab and then expanding the Macros>> button.
这篇关于复制二进制文件到物理文件的位置上后生成事件在VS2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文