The trace output for the process is as follows:
You must install or update .NET to run this application.
App: D:\Temp\10684\39\BH.Business.Common.Test\bin\Debug\net8.0\nCrunch.TaskRunner.DotNetCore.20.x64.dll
Architecture: x64
Framework: 'Microsoft.AspNetCore.App', version '8.0.24' (x64)
.NET location: C:\Program Files\dotnet\
The following frameworks were found:
3.1.32 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
6.0.36 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
7.0.20 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
8.0.23 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
9.0.12 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
10.0.3 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
I have v8 installed and need my tests to use that version as we have also specified a global.json file in the solution directory as the following:
{
"sdk": {
"version": "8.0.*",
"rollForward": "latestPatch"
}
}
I've also tried all the versions that do show up in the Build SDK dropdown included VS 2022 and VS2026 but none cause it to compile with the V8 sdk.