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

Notification

Icon
Error

Odd errors when using Net10 Preview 2 SDK
RichardHauer
#1 Posted : Friday, April 4, 2025 12:26:54 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/10/2022(UTC)
Posts: 8
Location: Australia

Before I even start, I'm on version 5.11.0.1 - this might well be the issue.

I'm working with libraries that are compiling to net10.0 preview 2.
I have updated the SDK in nCrunch config for my solution to 10.0.100-preview.2.25164.34
The projects seem to build OK, but when the tests start to execute everything fails.

The stack in the Processing Queue looks like this:

NCrunch encountered an error while trying to construct an environment to execute this test: 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..()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.ProcessManagement.ExternalProcessManager.(EffectiveProcessorArchitecture , ProcessLoadParameters , Boolean )
at nCrunch.Core.ProcessManagement.ExternalProcessManager.(EffectiveProcessorArchitecture , ProcessLoadParameters )
at nCrunch.Core.ProcessManagement.ExternalProcessManager.LoadExternalProcess(ProcessLoadParameters parameters, GridClientId client)
at nCrunch.Core.TestManagement.TestRunnerProcess..()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.TestManagement.TestRunnerProcess.(Nullable`1 , FilePath , GridClientId , CustomVariable[] , DirectoryPath )
at nCrunch.Core.TestManagement.TestRunnerProcess..()
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.TestExecutionTaskLogic.DoProcessTaskAndReturnSuccessFlag()


Is it safe to assume that the system's selection of Net Framework 3.5 is some sort of default, because v5.11.0.1 doesn't know about Net10?
My license doesn't cover the upgrade to the latest version, so before I spend money on this, will upgrading fix this issue or is there something else at work here?


Remco
#2 Posted : Friday, April 4, 2025 2:50:42 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 979 times
Was thanked: 1316 time(s) in 1221 post(s)
Hi, thanks for sharing this issue.

RichardHauer;18019 wrote:

I have updated the SDK in nCrunch config for my solution to 10.0.100-preview.2.25164.34
The projects seem to build OK, but when the tests start to execute everything fails.


Right now no testing has been performed for .NET 10, since it's still in a preview state. I cannot warrant that any build of NCrunch will work with it (including the latest current build).

As a matter of policy, NCrunch doesn't support preview builds of platforms. Sometimes they work anyway, and sometimes fixes for them get included in advance, but it just isn't feasible for a 1-person team to handle such deep integration with platforms while they're still very unstable and changing very rapidly. Ideally I try to introduce support just before RTM, but often it happens soon after.

RichardHauer;18019 wrote:

Is it safe to assume that the system's selection of Net Framework 3.5 is some sort of default, because v5.11.0.1 doesn't know about Net10?


I think this is probably a safe assessment. Preview builds do also have some strange logic that affects framework resolution simply when the 'preview' state is in play, since MS often try to keep preview platform resolution separate to allow people to do proper side-by-side installation. Hopefully it's something I'll easily be able to fix when I have a chance to add proper support.

RichardHauer;18019 wrote:

My license doesn't cover the upgrade to the latest version, so before I spend money on this, will upgrading fix this issue or is there something else at work here?


Upgrading your license will get you a year of software updates, and it's a safe bet that one of those updates will add support for .NET 10, though I can't say for certain which one it will be (since I don't know the RTM date for .NET 10). My guess is that .NET 10 will be fully released at MS Build in late May.
Der-Albert.com
#3 Posted : Friday, April 4, 2025 6:14:25 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 5/17/2011(UTC)
Posts: 214

Thanks: 12 times
Was thanked: 56 time(s) in 52 post(s)
.NET 10 will be released in November 2025 https://dotnet.microsoft...licy/dotnet-core#cadence
1 user thanked Der-Albert.com for this useful post.
Remco on 4/4/2025(UTC)
Remco
#4 Posted : Friday, April 4, 2025 7:15:03 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 979 times
Was thanked: 1316 time(s) in 1221 post(s)
Der-Albert.com;18021 wrote:
.NET 10 will be released in November 2025 https://dotnet.microsoft...licy/dotnet-core#cadence


Good find! Thank you :)
RichardHauer
#5 Posted : Monday, April 7, 2025 12:46:53 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/10/2022(UTC)
Posts: 8
Location: Australia

The framework updates are always in November to coincide with .NetConf

@Remco appreciate that you wouldn't have support for the Preview environment, all good.
I was wondering, though, since I had set the SDK parameter to select the Net10 SDK in configuration, what else might be needed. In user-code, everything worked seamlessly as I switched from net9.0 to net10.0.

I have a number of libraries now running on net10 and I have to fallback to MS Test to run my unit tests, which I'm not loving. Any guidance on where to look for this particular issue?
Remco
#6 Posted : Monday, April 7, 2025 4:56:32 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 979 times
Was thanked: 1316 time(s) in 1221 post(s)
RichardHauer;18026 wrote:
The framework updates are always in November to coincide with .NetConf

@Remco appreciate that you wouldn't have support for the Preview environment, all good.
I was wondering, though, since I had set the SDK parameter to select the Net10 SDK in configuration, what else might be needed. In user-code, everything worked seamlessly as I switched from net9.0 to net10.0.

I have a number of libraries now running on net10 and I have to fallback to MS Test to run my unit tests, which I'm not loving. Any guidance on where to look for this particular issue?


Sorry, I can't advise on this without actually pulling it all to bits and understanding what they've changed.
Users browsing this topic
Guest
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.056 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download