Nant is failing with listener:JetBrains.BuildServer.NAntLoggers.NAntListener

I tracked it down and I can get it to fail at the command line level
works just fine
E:\hgBuild\nant\nant -targetframework:net-3.5

--Causes an "Object reference not set to an instance of an object" error - details below
E:\hgBuild\nant\NAnt.exe -buildfile:E:\hgBuild\ -targetframework:net-2.0 -extension:E:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NAntLoggers.dll -listener:JetBrains.BuildServer.NAntLoggers.NAntListener

I've tried this on nAnt .86 and .9 as well as .85 with no luck.

  Message="Object reference not set to an instance of an object."
       at Microsoft.Build.CommandLine.MSBuildApp.BuildProject(String projectFile, String[] targets, String toolsVersion, BuildPropertyGroup propertyBag, ILogger[] loggers, LoggerVerbosity verbosity, DistributedLoggerRecord[] distributedLoggerRecords, Boolean needToValidateProject, String schemaFile, Int32 cpuCount, Boolean enableNodeReuse)
       at Microsoft.Build.CommandLine.MSBuildApp.Execute(String commandLine)
       at Microsoft.Build.CommandLine.MSBuildApp.Main()

1 comment
Comment actions Permalink

What is the version of TeamCity? Could you please provide stacktrace, if possible. Does the build script works without TeamCity?

Could you please attach a part of build script the contains this failing code.


Please sign in to leave a comment.