由网友(@折壹心上人@)分享简介:我想我的bin文件夹中生成的DLL复制到文件的位置上后生成事件在VS2010。I want to copy my dll generated in bin folder to a file location on Post Build Event in 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:pathtosomewhere"
上的生成事件
为您生成后事件的项目属性页选项卡。该 / 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:pathtosomewhere"
您可以通过点击编辑生成后看到更多的替代令牌(在$ 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.
相关推荐
最新文章