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

Notification

Icon
Error

New installation with VS2026
kkraus
#1 Posted : Thursday, November 6, 2025 4:05:49 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/9/2024(UTC)
Posts: 3
Location: Austria

Was thanked: 1 time(s) in 1 post(s)
Hello,

I got a new laptop with Windows 11 and installed the latest version of VS2026 with NCrunch 5.19.0.5

Unfortunately I cannot get the builds to succeed for my dotnet 9 projects.
I get blow error:

Quote:
NCrunch was unable to resolve dependency data for its own assemblies under your chosen framework. It is possible that the version of NCrunch you are using does not have support for this framework, or otherwise there may be another problem present on your system. NCrunch will fall back to using pre-packaged dependency data which may or may not be compatible with your chosen framework. This may result in dependency resolution problems inside your test environments.

Details for this problem are below:

The msbuild command returned exit code 1: "c:\program files\microsoft visual studio\18\insiders\MSBuild\Current\Bin\msbuild.exe" /t:Restore nCrunch.Module.NUnit3.DotNetCore.csproj


as well as:

Quote:
NCrunch was unable to restore Nuget packages required to build a test environment for this solution, due to an error: The msbuild command returned exit code 1: "c:\program files\microsoft visual studio\18\insiders\MSBuild\Current\Bin\msbuild.exe" /t:Restore "C:\Users\kkraus\AppData\Local\NCrunch\22244\PackageRestore\restorePackages.csproj"

The following packages do not exist under the Nuget packages folder for the active user profile, yet they have been flagged by NCrunch as potentially needed for normal operation. NCrunch has attempted to restore these files via an MSBuild restore step, which has either failed or not returned the expected result. It's possible that these packages may not be needed for building projects or running tests in your environment. If you experience downstream problems with NCrunch on this solution, it is recommended you restore or download the packages manually.

Note that the restore of packages may fail if NCrunch is being hosted under a windows account that does not have sufficient rights to store files in the Nuget packages directory.
System.Collections.NonGeneric v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Threading.Thread v4.3.0
System.Collections.NonGeneric v4.3.0
System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Threading.Thread v4.3.0
System.Collections.NonGeneric v4.3.0
System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Threading.Thread v4.3.0
System.Collections.NonGeneric v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Threading.Thread v4.3.0
Microsoft.NETFramework.ReferenceAssemblies.net20 v1.0.2
System.Collections.NonGeneric v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Management v6.0.0
System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Threading.Thread v4.3.0
System.Collections.NonGeneric v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Threading.Thread v4.3.0
System.Collections.NonGeneric v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Threading.Thread v4.3.0
System.Collections.NonGeneric v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Threading.Thread v4.3.0
System.Collections.NonGeneric v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Threading.Thread v4.3.0
System.Collections.NonGeneric v4.3.0
System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Threading.Thread v4.3.0
System.Collections.NonGeneric v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Threading.Thread v4.3.0
System.Collections.NonGeneric v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Threading.Thread v4.3.0
System.Collections.NonGeneric v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Threading.Thread v4.3.0
System.Collections.NonGeneric v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Threading.Thread v4.3.0
System.Runtime.Loader v4.0.0
System.Threading.Thread v4.0.0
System.Collections.NonGeneric v4.3.0
System.Collections.Specialized v4.3.0
System.ComponentModel v4.3.0
System.ComponentModel.Primitives v4.3.0
System.ComponentModel.TypeConverter v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Threading.Thread v4.3.0
System.Collections.NonGeneric v4.3.0
System.Collections.Specialized v4.3.0
System.ComponentModel v4.3.0
System.ComponentModel.Primitives v4.3.0
System.ComponentModel.TypeConverter v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Threading.Thread v4.3.0
System.Collections.NonGeneric v4.3.0
System.Collections.Specialized v4.3.0
System.ComponentModel v4.3.0
System.ComponentModel.Primitives v4.3.0
System.ComponentModel.TypeConverter v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Threading.Thread v4.3.0
System.Collections.NonGeneric v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Threading.Thread v4.3.0
System.Collections.NonGeneric v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Threading.Thread v4.3.0
System.Collections.NonGeneric v4.3.0
System.Collections.Specialized v4.3.0
System.ComponentModel v4.3.0
System.ComponentModel.Primitives v4.3.0
System.ComponentModel.TypeConverter v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Threading.Thread v4.3.0
System.Collections.NonGeneric v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Threading.Thread v4.3.0
System.Collections.NonGeneric v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Threading.Thread v4.3.0
System.Collections.NonGeneric v4.3.0
System.Collections.Specialized v4.3.0
System.ComponentModel v4.3.0
System.ComponentModel.Primitives v4.3.0
System.ComponentModel.TypeConverter v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Threading.Thread v4.3.0
xunit.abstractions v2.0.3
xunit.runner.utility v2.4.1
System.Collections.NonGeneric v4.3.0
System.Collections.Specialized v4.3.0
System.ComponentModel v4.3.0
System.ComponentModel.Primitives v4.3.0
System.ComponentModel.TypeConverter v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Threading.Thread v4.3.0
xunit.abstractions v2.0.3
xunit.runner.utility v2.4.1
System.Collections.NonGeneric v4.3.0
System.Collections.Specialized v4.3.0
System.ComponentModel v4.3.0
System.ComponentModel.Primitives v4.3.0
System.ComponentModel.TypeConverter v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Threading.Thread v4.3.0
System.Collections.NonGeneric v4.3.0
System.Collections.Specialized v4.3.0
System.ComponentModel v4.3.0
System.ComponentModel.Primitives v4.3.0
System.ComponentModel.TypeConverter v4.3.0
System.Diagnostics.TraceSource v4.3.0

System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Threading.Thread v4.3.0
NETStandard.Library v2.0.3
System.Collections.NonGeneric v4.3.0

I tried to directly reference NETStandard 2.0.3 in one of my project to restore it but that doesn't help.

Using VS, everything works as normal.
What can I do here?

Thanks,
Klemens
Remco
#2 Posted : Thursday, November 6, 2025 10:06:46 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 1004 times
Was thanked: 1346 time(s) in 1249 post(s)
Hi, thanks for sharing this.

There seems to be things in the environment that can cause this problem, but I've never managed to pin them down. It could be something as simple as an aggressive virus scanner or firewall.

The fix is usually simple though. Create a sample project that references each of the missing packages using package references (nuget). Make sure to reference the specific versions and don't just do NETStandard. When Nuget downloads these packages into your local package cache, all should work fine.
Users browsing this topic
Guest, kkraus
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.094 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download