• Anthony Stevens

Brion.MSBuild.Tasks Failing With Null Reference

Software

I’m trying to get NUnit test output XML showing within TeamCity, but found that there are problems getting the test results in one nicely merged output file.  So I found a workaround developed by Davy Brion that I thought I’d try.

When I run it, however, I get:

D:\Program Files\TeamCity\buildAgent\work\15aafe2852f53ad5\zoka.solution.build(36, 3): error MSB4018: The “NUnitMergeOutput” task failed unexpectedly.
System.NullReferenceException: Object reference not set to an instance of an object.
at Brion.MSBuildTasks.NUnitMergeOutput.Execute()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult)

Anybody have a clue what might be going on, or how to troubleshoot the error?

1 Comment

1 Comment

  1. Davy Brion  •  Nov 30, 2008 @2:31 am

    It might be because the NUnitOutputXmlFiles parameter doesn’t have any ITaskItem instances in it… can you show me how you call the task within your MSBuild script? And also how the value of NUnitOutputXmlFiles is assigned.