fr21
fr21

Reputation: 1816

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?

Upvotes: 30

Views: 33875

Answers (2)

Lars Truijens
Lars Truijens

Reputation: 43645

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.

Upvotes: 7

JP Alioto
JP Alioto

Reputation: 45127

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

Upvotes: 31

Related Questions