开发者

Multiple Output paths for a C# Project file

开发者 https://www.devze.com 2022-12-12 05:39 出处:网络
Can I use multiple output paths. like when i build my project, the exe should generate in two different paths. If so, How can I specify in Project Properties-> Build -> output path? I tried using , an

Can I use multiple output paths. like when i build my project, the exe should generate in two different paths. If so, How can I specify in Project Properties-> Build -> output path? I tried using , and ;开发者_C百科 but neither of those work.


You have a section build events in your project's properties. You can use post-build eventsto copy your output to different locations. Just press 'Edit Post-build' and 'Macros', so that you can even use shortcuts to your output directory. For more informations have a look here.


No, you can't. But you can copy the exe file to another directory after the build. In the "project options"->"Build Events"->"Post-build event command line" you can add a copy command. There are several placeholder available (like the output dir). Just check the "Edit post-build" button.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号