Build/Test Issues

xunit.v3 3.2.0 kills ncrunch build

Started by acm23 on 1,163 views

upgrading a working project from xunit.v3 3.1.0 to 3.2.0 immediately stops NCrunch from being able to build projects with the following error:

An error occurred while analysing this project after it was built: Unable to resolve an assembly required for the execution of Xunit3 on this machine. The assembly was expected at the following path: C:\Users\<username>\.nuget\packages\xunit.v3.core\3.2.0\_content\runners\netcore\xunit.v3.runner.utility.netcore.dll
Please ensure the package containing this assembly is installed on your machine. If you introduce an assembly reference directly to this binary in your test project, NCrunch will resolve it directly using your specified path.

Build and test still works with both Visual Studio and the dotnet cli.

Using latest version of NCrunch (5.19.0.5) together with Visual Studio 2026 Insiders (Insiders [11201.2])
Hi, thanks for sharing this.

This is a known problem at the moment. Xunit 3.2 has a breaking change for us. A fix will be coming in NCrunch v5.20. For now, I recommend staying on Xunit v3.1.
A fix will be out for this in NCrunch v5.20, which I'm aiming to release with Rider 2025.3, which I'm hoping will be in the coming week.
v5.20 is now available including the fix to implement support for xunit v3.2.

Post a reply

Log in to reply.