NullReferenceException in VisualStudioConverter.ConvertVSSolution

Bug #1084471 reported by Kuno Meyer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nunit-console
Triaged
Wishlist
Unassigned

Bug Description

When invoking the console runner. Please see below for console output. The problematic solution file is attached.

-------

$>nunit-console AdamsClient.sln
NUnit-Console version 2.6.2.12296
Copyright (C) 2002-2012 Charlie Poole.
Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.
Copyright (C) 2000-2002 Philip Craig.
All Rights Reserved.

Runtime Environment -
   OS Version: Microsoft Windows NT 5.1.2600 Service Pack 3
  CLR Version: 2.0.50727.3643 ( Net 3.5 )

Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at NUnit.Util.ProjectConverters.VisualStudioConverter.ConvertVSSolution(String path)
   at NUnit.Util.ProjectConverters.VisualStudioConverter.ConvertFrom(String path)
   at NUnit.Util.ProjectService.ConvertFrom(String path)
   at NUnit.Util.ProjectService.LoadProject(String path)
   at NUnit.ConsoleRunner.ConsoleUi.MakeTestPackage(ConsoleOptions options)
   at NUnit.ConsoleRunner.ConsoleUi.Execute(ConsoleOptions options)
   at NUnit.ConsoleRunner.Runner.Main(String[] args)

Revision history for this message
Kuno Meyer (kuno-meyer) wrote :
Revision history for this message
Why the Hell Do You Need an Account to Report a Bug (daniel-launchpad-j) wrote :

I have just had the same problem.

In my case cause was one or more projects not having a Property element with a condition for one of the build configurations defined in the .sln file. NUnit tries to find a property matching each and every build configuration for each and every project that it wants to include, even if the sln file points at another configuration for the given build type.

It also seems that sometimes, if the default build configuration doesn't have any customised values it is not included in the proj file.

Changed in nunitv2:
status: New → Triaged
Changed in nunitv2:
importance: Undecided → Wishlist
affects: nunitv2 → nunit-console
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.