Hi,
I've successfully used NCrunch in a number of solutions so far (great product BTW), but I have one project which refuses to load (The Status column says "Load failure").
The Tests window shows the following stack trace:
Code:
System.Xml.XmlException: Name cannot begin with the '.' character, hexadecimal value 0x00. Line 1, position 2.
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32& colonPos)
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XDocument.Parse(String text, LoadOptions options)
at nCrunch.Client.ComponentLoader.ParsedBuildXml..ctor(BuildXml buildXml, FrameworkVersion defaultFrameworkVersion)
at nCrunch.Client.ComponentLoader.SnapshotComponentFactory.(FilePath )
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)
I'm using NCrunch 2.15.0.9 with VS 2013 Update 4.
I've tried to change several configuration options without success.
The projectFilePath parameter name made me look at the csproj and nchrunchproject files. Both are well-formed XML and don't contain NULL characters. Changing encodings didn't fix the issue either.
In case it matters, the failing project isn't a test project, but one of the assembles under test. It's a ReSharper plugin.