Getting following error message for all test projects in a solution. URL in the message does not mention IpcConnectionClosedException.
Code:
NCrunch 5.18.0.2,
Visual Studio Community 2022 (64-bit) 17.14.14
xunit 2.9.3
xunit.runner.visualstudio 3.1.3
Code:
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.Core.ProcessManagement.DefaultProcessLoader.ConnectToProcess(ExternalProcess externalProcess, ProcessLoadParameters parameters, Action`1 outOfBandMessageHandler)
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.ProcessManagement.ExternalProcessManager.launchProcess(EffectiveProcessorArchitecture processorArchitecture, ProcessLoadParameters parameters, Boolean forceRedirectOutput)
The trace output for the process is as follows:
A JSON parsing exception occurred in [C:\Users\{username}\AppData\Local\NCrunch\14372\5\tests\{solutionName}.Analytics.Tests\bin\Debug\net9.0\nCrunch.TaskRunner.DotNetCore.20.x64.runtimeconfig.dev.json], offset 0 (line 1, column 1): Invalid value.
A JSON parsing exception occurred in [C:\Users\{username}\AppData\Local\NCrunch\14372\5\tests\{solutionName}.Analytics.Tests\bin\Debug\net9.0\nCrunch.TaskRunner.DotNetCore.20.x64.runtimeconfig.json], offset 0 (line 1, column 1): Invalid value.
Invalid runtimeconfig.json [C:\Users\{username}\AppData\Local\NCrunch\14372\5\tests\{solutionName}.Analytics.Tests\bin\Debug\net9.0\nCrunch.TaskRunner.DotNetCore.20.x64.runtimeconfig.json] [C:\Users\{username}\AppData\Local\NCrunch\14372\5\tests\{solutionName}.Analytics.Tests\bin\Debug\net9.0\nCrunch.TaskRunner.DotNetCore.20.x64.runtimeconfig.dev.json]
nCrunch.TaskRunner.DotNetCore.20.x64.runtimeconfig.dev.json file content:
Code:
{
"runtimeOptions": {
"configProperties": {
"System.GC.Concurrent": false,
"System.GC.Server": true
},
"additionalProbingPaths": [
"C:\\Users\\{username}\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\{username}\\.nuget\\packages",
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages",
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
]
}
}
nCrunch.TaskRunner.DotNetCore.20.x64.runtimeconfig.json file content:
Code:
{
"runtimeOptions": {
"tfm": "net9.0",
"framework": {
"name": "Microsoft.AspNetCore.App",
"version": "9.0.9"
}
}
}