Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Problems with .slnx format on buildserver
pgpacc
#1 Posted : Wednesday, March 4, 2026 6:45:57 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/4/2026(UTC)
Posts: 4
Location: Denmark

Was thanked: 1 time(s) in 1 post(s)
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
Remco
#2 Posted : Wednesday, March 4, 2026 8:19:27 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,535

Thanks: 1024 times
Was thanked: 1373 time(s) in 1274 post(s)
pgpacc
#3 Posted : Wednesday, March 4, 2026 8:56:43 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/4/2026(UTC)
Posts: 4
Location: Denmark

Was thanked: 1 time(s) in 1 post(s)
I have installed 5.21.0.5 and now it does not generate an error.

But my build report is kind of empty :(

Code:
Tests passed: 0, failed: 0, not run 0


Compare to when I run it against the .sln

Code:
Tests passed: 8852, failed: 0, not run 0
Remco
#4 Posted : Wednesday, March 4, 2026 9:51:39 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,535

Thanks: 1024 times
Was thanked: 1373 time(s) in 1274 post(s)
Does NCrunch itself (i.e. the IDE plugin) work OK for this .slnx?

Is your .slnx something you're able to share with me? If so, could you submit it through the NCrunch contact form?
pgpacc
#5 Posted : Wednesday, March 4, 2026 10:39:32 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/4/2026(UTC)
Posts: 4
Location: Denmark

Was thanked: 1 time(s) in 1 post(s)
It is working fine in VS2026. Both NCrunch 5.20.0.2 and 5.21.0.5. I'll send my .slnx through the form.
Remco
#6 Posted : Thursday, March 5, 2026 12:35:04 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,535

Thanks: 1024 times
Was thanked: 1373 time(s) in 1274 post(s)
pgpacc
#7 Posted : Thursday, March 5, 2026 7:11:06 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/4/2026(UTC)
Posts: 4
Location: Denmark

Was thanked: 1 time(s) in 1 post(s)
Much better 😊

It seems to be working now. Thank you very much 👍
1 user thanked pgpacc for this useful post.
Remco on 3/5/2026(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.046 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download