Michael S.
Michael S.

Reputation: 1791

Why does compilation through MSBuild take so much longer than through the IDE?

Here is my bat file.

call "C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\bin\rsvars.bat"
msbuild.exe C:\Work\Project1.dproj /t:Rebuild /p:Config=Debug;Platform=Win32

This seems to work well; however, it's taking 12 minutes to build. That same configuration/platform combination takes 2 mins 30 secs when doing a full build in the IDE. I've been unsuccessful in locating the cause of the slowdown. Any ideas or settings I should be looking at?

EDIT: I was using IDEFixPack 5.3 and getting build times ~2.5 mins. Removing IDEFixPack results in 12 min builds in the IDE as well.

Upvotes: 5

Views: 814

Answers (2)

Michael S.
Michael S.

Reputation: 1791

Per David Heffernan's suggestion I removed IDEFixPack and I see the same 12 min build times as I do with msbuild.

Upvotes: 2

Birger
Birger

Reputation: 4353

I guess there are some packages for which the IDE somehow can find the compiled dcu's in the path and MSBuild can only find the source.

Doesn't MSBuild output a compilation log that you can examine or post here?

Upvotes: 1

Related Questions