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 -f:myproject.build -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\myproject.build -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."
  Source="MSBuild"
  StackTrace:
       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()
  InnerException:

1 comment

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.
Thanks!

0

Please sign in to leave a comment.