How to specify MSbuild output folder?

六眼飞鱼酱① 提交于 2019-11-29 02:31:26

问题


When I execute delphi 2009 project using MSBuild command line, output always goes to C: drive

C:\MyProjects>MSbuild "C:\MyTestProject\Test.dproj" /t:Build /p:OutDir="C:\Output\bin\"

Why is this happening?


回答1:


I know the docs say otherwise, but try OutputPath instead of OutDir.




回答2:


For Delphi projects you need to use DCC_ExeOutput to specify where the EXE should go.

C:\MyProjects>MSbuild "C:\MyTestProject\Test.dproj" /t:Build /p:DCC_ExeOutput="C:\Output\bin\"

Take a look inside Test.dproj for any other options you might want to specify.



来源:https://stackoverflow.com/questions/1083334/how-to-specify-msbuild-output-folder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!