Build/Test Issues

NCrunch 2.0 Load Failure for test project

Started by kojoru on 5,887 views

Hi Remco.

Thank you for all the work in the new 2.0 version.

Unfortunately, I'm running into issue with my test project (which worked fine with 1.46) which prevents me from using it. Basically, my test project's status is "Load failure" and all the others' are "Not built". The error for the test project is:
System.NullReferenceException: Object reference not set to an instance of an object.
at nCrunch.Client.ComponentLoader.SnapshotComponentFactory.(FilePath )
at nCrunch.Client.ComponentLoader.SnapshotComponentFactory.(FilePath )
at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
at nCrunch.Client.ComponentLoader.SnapshotComponentFactory.(ComponentBuildAnalysisResult )
at nCrunch.Client.ComponentLoader.SnapshotComponentFactory.(ProcessorArchitecture )
at nCrunch.Client.ComponentLoader.SnapshotComponentFactory.CreateSnapshotComponentFromXml(FilePath projectFilePath, BuildXml projectXml, FilePath solutionFilePath, String[] additionalFilesToIncludeAtSolutionLevel, Boolean isLoadedFromFile, ISnapshotConfig snapshotConfig, VisualStudioVersion vsVersion)


The build works ok from VS and tests work fine is Resharper test runner. My VS version is 2013, NCrunch is 2.0.0.97.

Is there anything I can do to make this work?
Hi! Thanks for reporting V2's first official defect :)

Most probably your test project has a particular property that is surfacing this issue. Is there any chance you could submit a bug report? Also, I'm not sure if this is possible based on your IP constraints, but if there is any way I can get hold of the project's XML, this will also be a huge help.


Cheers,

Remco
No problem, sent you the bug report with the XML using contact form.

If maybe there's a workaround involving editing the project's file, that's okay as well!

Edited

I’m happy to say that this issue has been resolved. If you’re interested in grabbing the fix, you can download v2.1b from the NCrunch download page - http://www.ncrunch.net/download

Post a reply

Log in to reply.