How can I get MSBuild to do a full build of a Delphi project equivalent to dcc32 -b?

后端 未结 5 738
不知归路
不知归路 2020-12-30 11:43

How can I get MSBuild to do a full build of a Delphi project equivalent to dcc32 -b?

I\'ve got two projects I\'m trying to build, the first one uses some conditional

5条回答
  •  旧巷少年郎
    2020-12-30 11:56

    I believe it's /t:rebuild, the msbuild output lists "Deleting file: ..." for all the dcu's, then builds the project.

    I use a batch file to call msbuild to build delphi projects, for Delphi 2007 and Delphi 2009 (which just has a different path for %BDS%):

    set DCC_Quiet=true
    set BDS=%ProgramFiles%\CodeGear\RAD Studio\5.0
    set MSBuildBinPath=%WinDir%\Microsoft.NET\Framework\v2.0.50727
    
    call %MSBuildBinPath%\msbuild /nologo /t:rebuild /p:config=Release %1 %2 %3 %4 %5
    

    [Note, from this question, for Release "Build Configuration", Delphi 2009 is /p:config=Release, and Delphi 2007 is /p:Configuration=Release]

提交回复
热议问题