How to specify MSbuild output folder?

前端 未结 2 1047
攒了一身酷
攒了一身酷 2020-12-29 05:39

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

C:\\MyProjects>MSbuild \"C:\\MyTestProject\\Test.dproj\" /t:         


        
相关标签:
2条回答
  • 2020-12-29 05:49

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

    0 讨论(0)
  • 2020-12-29 06:05

    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.

    0 讨论(0)
提交回复
热议问题