Nant logging listener causes msbuild to blow up
This is in 4.5.4.9071.
As there is a known bug regarding hanging builds running from cmd - i decided to use the nant runner.
However - running it causes msbuild to blow up.
[msbuild] MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
if i muck about on the command line and delete the following lines:
-extension:E:\BuildAgent2\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NAntLoggers.dll
-listener:JetBrains.BuildServer.NAntLoggers.NAntListener
then msbuild works properly.
I am using nantcontrib-0.86-nightly-2009-02-01. - but even if i comment out the load tasks line from that (so presumably its using the TC msbuild task) then it still blows up.
I am using .net framework 3.5 (installed not from visual studio - so i have version 6.1, not 6.0a.
any suggestions gladly received.
thanks!!!
james
Please sign in to leave a comment.
James,
Could you please provide server logs and thread dump of the hanged process. Also please details which task causes hang.
nope - this isn't about a hung build - this is about msbuild just blowing up...
the blow up looks like this:
So, no hang - just blown up msbuild... :-(
ok so i found that if i edited the tcargs file from this:
/nologo
/noconsolelogger
/verbosity:quiet
/property:"Configuration"="Debug"
/target:Build_TeamCity_generated_f413ffce0823469cb13b8d2f8ebde7d6
"/l:JetBrains.BuildServer.MSBuildLoggers.MSBuildLogger,E:\BuildAgent1\plugins\dotnetPlugin\bin\JetBrains.BuildServer.MSBuildLoggers.dll"
to this
/nologo
/noconsolelogger
/property:"Configuration"="Debug"
/target:Build_TeamCity_generated_f413ffce0823469cb13b8d2f8ebde7d6
"/l:JetBrains.BuildServer.MSBuildLoggers.MSBuildLogger,E:\BuildAgent1\plugins\dotnetPlugin\bin\JetBrains.BuildServer.MSBuildLoggers.dll"
ie got rid of the verbosity - it doesn't blow up.... hmmm.... now to try to make this not happen from the build itself......
Could you please check if NAnt/msbuild will work if start MSBuild from commandline.
Please attach the part of NAnt script where msbuild is started.
Yes - all the detail you need is in the post i think.
it does work form the command line - i said that already. I've included two versions of the msbuild args - one that works, and one that doesn't.
is there any more info you need?
cheers!
James
Ok,
Do you start msbuild.exe from commandline using <Exec> task? What will be the result if start msbuild in that way.
Could you please attach a part of NAnt script that starts msbuild (using <msbuild> task).
<msbuild project="PBT.sln" verbosity="${msbuild-verbosity}">
<property name="Configuration" value="${msbuild-configuration}"/>
</msbuild>
Could you please try the following:
- start msbuild using <msbuild> task with verbosity set to 'diag': /verbosity:diag
- start msbuidl using <exec> task of NAnt
Make sure you set 'teamcity.agent.dotnet.debug' build property with value 'true' in the build configuration settings.
Please attach produced build logs.
Do you have any msbuild extensions installed for MSBuild?