简体   繁体   中英

How to specify MSbuild output folder?

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?

我知道文档说不然 ,但尝试OutputPath而不是OutDir。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM