Build/Test Issues

Upgraded VS 2022 to 17.12.1 (.Net 9 support) and nCrunch now failing

Started by oriches on 2,587 views

Been using for nCrunch with .Net 8 WPF based apps perfectly fine, and now getting the following issue, .Net 9.0 runtime & SDK are installed.

Any ideas?

An error occurred while analysing this project after it was built: NCrunch encountered an unexpected error occurred while building an environment to analyse an assembly: The NCrunch task process failed to correctly initialise with the following exception: nCrunch.TaskRunner.Ipc.IpcConnectionClosedException: The NCrunch task process was unexpectedly terminated. For information on how to troubleshoot this problem, please see https://www.ncrunch.net/documentation/troubleshooting_process-terminated-unexpected-error

at nCrunch.TaskRunner.Ipc.Fast.IpcReader.Initialise()
at nCrunch.TaskRunner.Ipc.Fast.IpcStream.Connect()
at nCrunch.TaskRunner.Ipc.Fast.FastIpcClient.Connect()
at nCrunch.Core.ProcessManagement.DefaultProcessLoader.ConnectToProcess(ExternalProcess externalProcess, ProcessLoadParameters parameters, Action`1 outOfBandMessageHandler)
at nCrunch.Core.ProcessManagement.ExternalProcessManager..()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.ProcessManagement.ExternalProcessManager.[1](EffectiveProcessorArchitecture [1], ProcessLoadParameters
, Boolean )

The trace output for the process is as follows:

You must install or update .NET to run this application.

App: C:\ ...\AppData\Local\NCrunch\55788\14\...\bin\Debug\net8.0-windows10.0.19041.0\nCrunch.TaskRunner.DotNetCore.20.x64.dll

Architecture: x64
Framework: 'Microsoft.Windows.SDK.NET.Ref.Windows', version '10.0.19041.54' (x64)

.NET location: C:\Program Files\dotnet\
No frameworks were found.

Learn more:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.Windows.SDK.NET.Ref.Windows&framework_version=10.0.19041.54&arch=x64&rid=win-x64&os=win10
Hi, thanks for sharing this issue.

Could you check if the build published here resolves this issue for you?
Builds & runs the tests with this build.

Thanks
Ollie

Edited

Post a reply

Log in to reply.