Just migrated my solution to .slnx format
In Visual Studio ncrunch is happy.
But when building on the build server I get this:
Code:
[PID:338172 07.26.14.7233 InitialisationQueueTask-19] ERROR (Load): Error occurred during load of component at C:\Users\me\work\master.slnx: System.Exception: An exception was thrown in the remote environment: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.Build.Exceptions.InvalidProjectFileException: The project file could not be loaded. Unexpected end of file has occurred. The following elements are not closed: Folder, Solution. Line 138, position 11. C:\Users\me\work\nCrunchTemp_836484fc-a87b-45b2-947f-a8f2bc5ea2f0.slnx ---> System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: Folder, Solution. Line 138, position 11.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
And sure enough, the
nCrunchTemp_836484fc-a87b-45b2-947f-a8f2bc5ea2f0.slnx is malformed.
It starts like this:
Code:
<Solution>
<Folder Name="/Common/">
<Project DefaultTargets="Build;NCrunchOutputDataQuery" Path="src/Common/CommonStandard.Tests/CommonStandard.Tests.csproj" />
<Project Path="src/Common/CommonStandard/CommonStandard.csproj" />
and ends like this:
Code:
<Message Text="#38f850127f904b3a8ccef909ee92b8b0=$(OutputType)"/>
<Message Text="#Shadow=;@(Shadow)"/>
</Target>
</Project>
Clearly the last line should have to be
</Solution>To build, I run this command:
Code:& "C:\Program Files (x86)\Remco Software\NCrunch Console Tool\NCrunch.exe" .\master.slnx
NCrunch Console Tool v5.20.0.2