Build/Test Issues

.net 10 + xunit 3 + visual studio insiders fails with .net 3.5 error

Started by erwinvandervalk on 770 views

Hi,

I'm using ncrunch with .net 10 and visual studio insiders. (not sure if this is already supported).

I get the following error:


WARNING - NCrunch: This project has been built with MSBuild for VS2026 because MSBuild for VS2022 was not found on this server. Some build tasks may fail when not executed using the correct version.

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: System.Exception: The requested version of the .NET framework, 'Framework3_5' is not installed on this system
at nCrunch.Core.ProcessManagement.DefaultProcessLoader.GetProcessExeFile(DotNetClassicFrameworkVersion frameworkVersion, EffectiveProcessorArchitecture processorArchitecture, String exeTitle)
at nCrunch.Core.ProcessManagement.DefaultProcessLoader.GetProcessExeFileUsingLoadParameters(ProcessLoadParameters parameters)
at nCrunch.Core.ProcessManagement.DefaultProcessLoader.LoadProcess(ProcessLoadParameters parameters, Int32 ownerProcessId, String callbackUri, String externalProcessId, Boolean redirectOutput)
at nCrunch.Core.ProcessManagement.ExternalProcessManager.<>c__DisplayClass15_0.<launchProcess>b__0()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.ProcessManagement.ExternalProcessManager.launchProcess(EffectiveProcessorArchitecture processorArchitecture, ProcessLoadParameters parameters, Boolean forceRedirectOutput)
at nCrunch.Core.ProcessManagement.ExternalProcessManager.launchProcessWithRetry(EffectiveProcessorArchitecture processorArchitecture, ProcessLoadParameters parameters)
at nCrunch.Core.ProcessManagement.ExternalProcessManager.LoadExternalProcess(ProcessLoadParameters parameters, GridClientId client)
at nCrunch.Core.TestManagement.TestRunnerProcess.<>c__DisplayClass12_0.<createProcessReturningProcessId>b__0()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.TestManagement.TestRunnerProcess.createProcessReturningProcessId(Nullable`1 newProcessTag, FilePath solutionFilePath, GridClientId client, CustomVariable[] customEnvironmentVariables, DirectoryPath rdiSnapshotStoragePath)
at nCrunch.Core.TestManagement.TestRunnerProcess.<>c__DisplayClass11_0.<LoadTestRunnerProcessForProjectReturningProcessId>b__2()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.TestManagement.TestRunnerProcess.LoadTestRunnerProcessForProjectReturningProcessId(SnapshotComponent snapshotComponent, FlattenedComponentDependencies componentsInProcess, TestFrameworkDescription[] testingFrameworks, Nullable`1 newProcessTag, FilePath solutionFilePath, GridClientId client, CustomVariable[] customEnvironmentVariables, IRdiSplitSnapshot rdiSnapshot)
at nCrunch.Core.Processing.AnalysisTaskLogic.DoProcessTaskAndReturnSuccessFlag()


I have a minimal repro (new xunitv3 project + .net 10).
Hi, thanks for sharing this.

NCrunch does support VS2026 (in a preview state), but work for .NET 10 is still in progress. Probably it will be out with the next version of NCrunch.

Post a reply

Log in to reply.