nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #03513
[Bug 1084471] Re: NullReferenceException in VisualStudioConverter.ConvertVSSolution
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.
--
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/1084471
Title:
NullReferenceException in VisualStudioConverter.ConvertVSSolution
Status in NUnit V2 Test Framework:
New
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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/1084471/+subscriptions
References