本文介紹了在 VS2010 中的 Post Build 事件中將 bin 文件復制到物理文件位置的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我想將我在 bin 文件夾中生成的 dll 復制到 vs2010 中 Post Build Event 的文件位置.
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 osomewhere"
在項目屬性頁面的構建事件選項卡上給您構建后事件./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 osomewhere"
您可以通過單擊屬性選項卡中的 Edit Post-build... 按鈕然后展開 宏>> 按鈕.
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 中的 Post Build 事件中將 bin 文件復制到物理文件位置的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!