Page 1 of 1

MSbuild Twinecompile build is taking more time

Posted: Mon Oct 23, 2023 10:57 am
by cdineshbe
Hi Team,

I am using Twinecompile 5.5.1 in RAD studio 11.3. When I build my project in rad studio using Twinecompile it is finished in 7 to 10 mins. But when run the build using MSbuild command in RAD studio command prompt it is taking 3.5 hrs to complete the build.

MSBuild /t:Build m****.cbproj

I have added the target file in .cbproj file.

Am I missing something? please help.

Re: MSbuild Twinecompile build is taking more time

Posted: Mon Oct 23, 2023 11:01 am
by jomitech
The simplest way to use TwineCompile in MSBuild on the command-line is to use the jtmake tool that ships with TwineCompile. It will automatically handle the project file changes (in-memory) so that compiling the project uses TwineCompile.

If you want to use TwineCompile directly with MSBuild (without using a separate tool like jtmake), make sure you put the TwineCompile targets import at the end of the project file, after the other CodeGear imports, so that it can override the properties set by those files.

Re: MSbuild Twinecompile build is taking more time

Posted: Mon Oct 23, 2023 11:05 am
by cdineshbe
Thanks for the immediate response.

Yes I have added the TCTargets110.targets path
<Import Project="C:\Program Files (x86)\JomiTech\TwineCompile\TCTargets110.targets"/> after codegear.cpp.targets line.

But still it is taking more time.(3.5hrs)

Re: MSbuild Twinecompile build is taking more time

Posted: Mon Oct 23, 2023 8:26 pm
by jomitech
Can you send the console output to support@jomitech.com? Something is preventing the TwineCompile targets from being executed.