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

Notification

Icon
Error

Rider: You must install or update .NET to run this application.
Der-Albert.com
#1 Posted : Tuesday, September 30, 2025 8:42:41 AM(UTC)
Rank: Advanced Member

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

Thanks: 14 times
Was thanked: 56 time(s) in 52 post(s)
Getting this all the time since months (send several Bugreports via NCrunch Bugreporting)

Have to Restart Rider.

Code:

C:\Program Files\dotnet\sdk\9.0.305\Roslyn\Microsoft.CSharp.Core.targets: You must install or update .NET to run this application.
C:\Program Files\dotnet\sdk\9.0.305\Roslyn\Microsoft.CSharp.Core.targets: 
C:\Program Files\dotnet\sdk\9.0.305\Roslyn\Microsoft.CSharp.Core.targets: App: C:\Program Files\dotnet\sdk\9.0.305\Roslyn\bincore\csc.dll
C:\Program Files\dotnet\sdk\9.0.305\Roslyn\Microsoft.CSharp.Core.targets: Architecture: x64
C:\Program Files\dotnet\sdk\9.0.305\Roslyn\Microsoft.CSharp.Core.targets: Framework: 'Microsoft.NETCore.App', version '9.0.9' (x64)
C:\Program Files\dotnet\sdk\9.0.305\Roslyn\Microsoft.CSharp.Core.targets: .NET location: C:\Users\UI520628\AppData\Local\Programs\Rider\lib\ReSharperHost\windows-x64\dotnet\
C:\Program Files\dotnet\sdk\9.0.305\Roslyn\Microsoft.CSharp.Core.targets: 
C:\Program Files\dotnet\sdk\9.0.305\Roslyn\Microsoft.CSharp.Core.targets: The following frameworks were found:
C:\Program Files\dotnet\sdk\9.0.305\Roslyn\Microsoft.CSharp.Core.targets:   8.0.11 at [C:\Users\UI520628\AppData\Local\Programs\Rider\lib\ReSharperHost\windows-x64\dotnet\shared\Microsoft.NETCore.App]
C:\Program Files\dotnet\sdk\9.0.305\Roslyn\Microsoft.CSharp.Core.targets: 
C:\Program Files\dotnet\sdk\9.0.305\Roslyn\Microsoft.CSharp.Core.targets: Learn more:
C:\Program Files\dotnet\sdk\9.0.305\Roslyn\Microsoft.CSharp.Core.targets: https://aka.ms/dotnet/app-launch-failed
C:\Program Files\dotnet\sdk\9.0.305\Roslyn\Microsoft.CSharp.Core.targets: 
C:\Program Files\dotnet\sdk\9.0.305\Roslyn\Microsoft.CSharp.Core.targets: To install missing framework, download:
C:\Program Files\dotnet\sdk\9.0.305\Roslyn\Microsoft.CSharp.Core.targets: https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=9.0.9&arch=x64&rid=win-x64&os=win10


my dotnet --info
Code:

❯ dotnet --info
.NET SDK:
 Version:           9.0.305
 Commit:            3fc74f3529
 Workload version:  9.0.300-manifests.6fcb754b
 MSBuild version:   17.14.21+8929ca9e3

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.26100
 OS Platform: Windows
 RID:         win-x64
 Base Path:   C:\Program Files\dotnet\sdk\9.0.305\

.NET workloads installed:
There are no installed workloads to display.
Configured to use loose manifests when installing new manifests.

Host:
  Version:      9.0.9
  Architecture: x64
  Commit:       893c2ebbd4

.NET SDKs installed:
  8.0.414 [C:\Program Files\dotnet\sdk]
  9.0.305 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 8.0.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 9.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 8.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 9.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 8.0.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 9.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
  x86   [C:\Program Files (x86)\dotnet]
    registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

Remco
#2 Posted : Tuesday, September 30, 2025 8:46:42 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 997 times
Was thanked: 1343 time(s) in 1246 post(s)
Thanks for sharing this.

The NCrunch engine is bound to .NET 8. It's basically a .NET 8 console application.

When do you receive this error? Is there something you need to do to suppress it?
Der-Albert.com
#3 Posted : Tuesday, September 30, 2025 9:59:03 AM(UTC)
Rank: Advanced Member

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

Thanks: 14 times
Was thanked: 56 time(s) in 52 post(s)
This is in the Ncrunch Test Window when NCrunch is trying to run the tests.

I happens without warning, it worked, and then it stopped working. I restart Rider then it works again. Diableing & Enabling NCrunch does not help, Reload & Build Selected Component does not help. Have to close and open Rider.
Remco
#4 Posted : Tuesday, September 30, 2025 11:23:17 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 997 times
Was thanked: 1343 time(s) in 1246 post(s)
Can you confirm which version of .NET you are testing against with this project?

The paths specified in the error are interesting. It looks like it's trying to use a version of the runtime that's installed under Rider. I wonder if there is an environment variable in place that is redirecting dotnet to this path. When this issue appears, could you try running a test in the ReSharper/Rider test runner that dumps all environment variables to the console?

Something else that would be interesting is if you could try using the 'Build Sdk' NCrunch config setting to force it to use a specific version of .NET.
Der-Albert.com
#5 Posted : Tuesday, September 30, 2025 3:00:56 PM(UTC)
Rank: Advanced Member

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

Thanks: 14 times
Was thanked: 56 time(s) in 52 post(s)
The Projects are .NET 9.0. I never installed a .NET Environment over Rider (doing it manually currently over winget)

But Rider comes with .NET 8.0 for ReSharper. So that Rider/ReSharper can run.

If it happens again, i hopefully remember to set the SDK, but it should still work without that.

Here are the ENV Variables, but this is because it is working now. If it does not work, i cannot give you these.
Code:

_NCrunch.CpuCounts = 28
ALLUSERSPROFILE = C:\ProgramData
APPDATA = C:\Users\UI_REDACTED\AppData\Roaming
AWS_CA_BUNDLE = C:\Localdata\REDACTED_inspection_certificate_chain.pem
CommonProgramFiles = C:\Program Files\Common Files
CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
CommonProgramW6432 = C:\Program Files\Common Files
COMPUTERNAME = LAPTOP000WLDR63
ComSpec = C:\WINDOWS\system32\cmd.exe
DOTNET_GCConserveMemory = 6
DOTNET_GCHeapCount_PID_00011394 = 2
DOTNET_GCNoAffinitize = 1
DOTNET_gcServer = 1
DOTNET_MULTILEVEL_LOOKUP = 0
DOTNET_TieredPGO = 0
DriverData = C:\Windows\System32\Drivers\DriverData
EFC_14452_1592913036 = 1
HOMEDRIVE = C:
HOMEPATH = \Users\UI_REDACTED
IWBPath = C:\Program Files (x86)\SAP\FrontEnd\iwb
JET_ADDITIONAL_DEPLOYED_PACKAGES_FILE_PID_00011394 = C:\Users\UI_REDACTED\AppData\Local\Temp\1\AdditionalDeployedPackages.xml
JET_BACKEND_CULTURE_PID_00011394 = en-US
JET_BUNDLED_TOOLS_PATH = C:\Users\UI_REDACTED\AppData\Local\Programs\Rider\tools
JET_CURRENT_DOTNET_CLI = C:\Users\UI_REDACTED\AppData\Local\Programs\Rider\lib\ReSharperHost\windows-x64\dotnet\dotnet.exe
JET_HEADLESS_MODE = false
JET_LOCAL_APPDATA_DIR_PID_00011394 = C:\Users\UI_REDACTED\AppData\Local\JetBrains\Rider2025.2\resharper-host\local
JET_ROAMING_APPDATA_DIR_PID_00011394 = C:\Users\UI_REDACTED\AppData\Local\JetBrains\Rider2025.2\resharper-host\roaming
JET_TEMP_DIR_PID_00011394 = C:\Users\UI_REDACTED\AppData\Local\JetBrains\Rider2025.2\resharper-host\temp
LOCALAPPDATA = C:\Users\UI_REDACTED\AppData\Local
LOGONSERVER = \\REDACTED00002
NCrunch = 1
NCrunch.AllAssemblyLocations = file:C:\Users\UI_REDACTED\AppData\Local\NCrunch\64524\51744.ReferencedAssemblies.txt
NCrunch.DuplicatedDimension =
NCrunch.ImplicitlyReferencedAssemblyLocations =
NCrunch.InstallPath = C:\Users\UI_REDACTED\AppData\Local\NCrunch\Engine\engine_35f7212b-8e40-4605-8678-c79a44950271
NCrunch.IsHighPriority = 0
NCrunch.LogBufferName = NCrunchLog_70548
NCrunch.LogBufferSize = 15000000
NCrunch.MasterProcessId = 64524
NCrunch.OriginalProjectPath = D:\dev\REDACTED\Care.Taker\backend\test\Core.Tests\Core.Tests.csproj
NCrunch.OriginalSolutionPath = D:\dev\REDACTED\Care.Taker\backend\Care.Taker.sln
nCrunch.TestRuntime.ExecutionMapSpecifications = 2,2538,112:6,1531,32
nCrunch.TestRuntime.HostProcessId = 51744
NCrunchVSInstallPath.VS2022 = C:\Program Files\Microsoft Visual Studio\2022\Community
NODE_EXTRA_CA_CERTS = C:\Localdata\REDACTED_inspection_certificate_chain.pem
NUGET_HTTP_CACHE_PATH = D:\cachefiles\nuget\v3-cache
NUGET_PACKAGES = D:\cachefiles\nuget\packages
NUGET_PLUGINS_CACHE_PATH = D:\cachefiles\nuget\plugins-cache
NUGET_SCRATCH = D:\cachefiles\nuget\scratch
NUMBER_OF_PROCESSORS = 28
OneDrive = C:\Users\UI_REDACTED\OneDrive - REDACTED
OneDriveCommercial = C:\Users\UI_REDACTED\OneDrive - REDACTED
OS = Windows_NT
Path = C:\Program Files (x86)\Common Files\Oracle\Java\java8path;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin;C:\Oracle\19_64c\client_1\bin;C:\Oracle\19_32c\client_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\PowerShell\7\;C:\Program Files\starship\bin\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Microsoft SQL Server\160\DTS\Binn\;C:\Program Files\dotnet\;C:\Program Files\WinGet\Packages\Microsoft.Sysinternals.ZoomIt_Microsoft.Winget.Source_8wekyb3d8bbwe;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\nodejs\;C:\Program Files\Docker\Docker\resources\bin;C:\Program Files\Neovim\bin;C:\Program Files\Amazon\AWSCLIV2\;C:\Users\UI_REDACTED\AppData\Local\Microsoft\WindowsApps;C:\Users\UI_REDACTED\AppData\Local\Microsoft\WinGet\Packages\Microsoft.NuGet_Microsoft.Winget.Source_8wekyb3d8bbwe;C:\Users\UI_REDACTED\AppData\Roaming\npm;C:\Users\UI_REDACTED\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\UI_REDACTED\AppData\Local\Microsoft\WinGet\Packages\Kubernetes.kubectl_Microsoft.Winget.Source_8wekyb3d8bbwe;C:\Users\UI_REDACTED\AppData\Local\Microsoft\WinGet\Packages\Helm.Helm_Microsoft.Winget.Source_8wekyb3d8bbwe\windows-amd64;C:\Users\UI_REDACTED\AppData\Local\Microsoft\WinGet\Packages\eksctl.eksctl_Microsoft.Winget.Source_8wekyb3d8bbwe;C:\Users\UI_REDACTED\AppData\Local\JetBrains\Toolbox\scripts;C:\WINDOWS\system32\config\systemprofile\.dotnet\tools;C:\Users\UI_REDACTED\AppData\Local\Microsoft\WinGet\Packages\junegunn.fzf_Microsoft.Winget.Source_8wekyb3d8bbwe;C:\Users\UI_REDACTED\AppData\Local\Microsoft\WinGet\Packages\ajeetdsouza.zoxide_Microsoft.Winget.Source_8wekyb3d8bbwe;C:\Users\UI_REDACTED\AppData\Local\Microsoft\WinGet\Packages\sharkdp.bat_Microsoft.Winget.Source_8wekyb3d8bbwe\bat-v0.25.0-x86_64-pc-windows-msvc;C:\Users\UI_REDACTED\AppData\Local\Microsoft\WinGet\Packages\dandavison.delta_Microsoft.Winget.Source_8wekyb3d8bbwe\delta-0.18.2-x86_64-pc-windows-msvc;;C:\Users\UI_REDACTED\AppData\Local\Programs\Lens\resources\cli\bin;C:\Users\UI_REDACTED\AppData\Local\Microsoft\WinGet\Packages\rsteube.Carapace_Microsoft.Winget.Source_8wekyb3d8bbwe;C:\Users\UI_REDACTED\AppData\Local\Microsoft\WinGet\Packages\JesseDuffield.lazygit_Microsoft.Winget.Source_8wekyb3d8bbwe;C:\Users\UI_REDACTED\AppData\Local\Microsoft\WinGet\Packages\JesseDuffield.Lazydocker_Microsoft.Winget.Source_8wekyb3d8bbwe;C:\Users\UI_REDACTED\AppData\Local\Microsoft\WinGet\Packages\Microsoft.Sysinternals.Autoruns_Microsoft.Winget.Source_8wekyb3d8bbwe;;C:\Program Files\dotnet\shared\Microsoft.NETCore.App\9.0.9
PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
POWERSHELL_DISTRIBUTION_CHANNEL = MSI:Windows 10 Enterprise
PROCESSOR_ARCHITECTURE = AMD64
PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 183 Stepping 1, GenuineIntel
PROCESSOR_LEVEL = 6
PROCESSOR_REVISION = b701
ProgramData = C:\ProgramData
ProgramFiles = C:\Program Files
ProgramFiles(x86) = C:\Program Files (x86)
ProgramW6432 = C:\Program Files
PSModulePath = C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
PUBLIC = C:\Users\Public
RENOVATE_BASE_DIR = D:\cachefiles\renovate
REQUESTS_CA_BUNDLE = C:\Localdata\REDACTED_inspection_certificate_chain.pem
RESHARPER_FRONT_PRODUCT_CODE = RD
RESHARPER_FUS_BUCKET = 167
RESHARPER_FUS_BUILD = 252.26199.190
RESHARPER_FUS_DEVICEID = 1409251ec7031f0-e182-4627-9ffa-1527af5608b8
RESHARPER_FUS_IGNOREPID = 55824
RESHARPER_FUS_SALT = 4yD7gS4hDt0nv6UPronYmkPfaO5rmTISMJMXgFVMM1I=
RESHARPER_FUS_SESSION = 25093014-f69b38aaebbc
RESHARPER_FUS_USERID = 47898502-2459-4d15-ba16-4423677822c5
RESHARPER_HOST_CONFIG_DIR = C:\Users\UI_REDACTED\AppData\Roaming\JetBrains\Rider2025.2\resharper-host
RESHARPER_HOST_LOG_DIR = C:\Users\UI_REDACTED\AppData\Local\JetBrains\Rider2025.2\log
RESHARPER_HOST_PARENT_PROCESS_PID = 69896
RESHARPER_LOG_CONF = C:\Users\UI_REDACTED\AppData\Local\Programs\Rider\bin\backend-log.xml
RESHARPER_REPORT_VERSION = 2025.2.2.1
RIDER_PLUGIN_ADDITIONAL_PROBING_PATHS = C:\Users\UI_REDACTED\AppData\Local\Programs\Rider\lib\ReSharperHost;C:\Users\UI_REDACTED\AppData\Local\Programs\Rider\plugins\debuggerLinq\DotFiles;C:\Users\UI_REDACTED\AppData\Local\Programs\Rider\plugins\dotCommon\DotFiles;C:\Users\UI_REDACTED\AppData\Local\Programs\Rider\plugins\dotCover\DotFiles;C:\Users\UI_REDACTED\AppData\Local\Programs\Rider\plugins\dotTrace.dotMemory\DotFiles;C:\Users\UI_REDACTED\AppData\Local\Programs\Rider\plugins\dpa\DotFiles;C:\Users\UI_REDACTED\AppData\Local\Programs\Rider\plugins\localization-ja\dotnet;C:\Users\UI_REDACTED\AppData\Local\Programs\Rider\plugins\localization-ko\dotnet;C:\Users\UI_REDACTED\AppData\Local\Programs\Rider\plugins\localization-zh\dotnet;C:\Users\UI_REDACTED\AppData\Local\Programs\Rider\plugins\rider-efcore\dotnet;C:\Users\UI_REDACTED\AppData\Local\Programs\Rider\plugins\rider-godot\dotnet;C:\Users\UI_REDACTED\AppData\Local\Programs\Rider\plugins\rider-plugins-for-tea\dotnet;C:\Users\UI_REDACTED\AppData\Local\Programs\Rider\plugins\rider-plugins-fsharp\DotFiles;C:\Users\UI_REDACTED\AppData\Local\Programs\Rider\plugins\rider-plugins-renderdoc\dotnet;C:\Users\UI_REDACTED\AppData\Local\Programs\Rider\plugins\rider-unity\DotFiles;C:\Users\UI_REDACTED\AppData\Local\Programs\Rider\plugins\rider-unity\dotnet;C:\Users\UI_REDACTED\AppData\Local\Programs\Rider\plugins\rider-verse\dotnet;C:\Users\UI_REDACTED\AppData\Local\Programs\Rider\plugins\sqlproj-plugin\dotnet;C:\Users\UI_REDACTED\AppData\Local\Programs\Rider\plugins\UnrealLink\dotnet;C:\Users\UI_REDACTED\AppData\Roaming\JetBrains\Rider2025.2\plugins\aspire-plugin\dotnet;C:\Users\UI_REDACTED\AppData\Roaming\JetBrains\Rider2025.2\plugins\ncrunchforrider\dotnet;C:\Users\UI_REDACTED\AppData\Roaming\JetBrains\Rider2025.2\plugins\open-telemetry-plugin\dotnet;C:\Users\UI_REDACTED\AppData\Roaming\JetBrains\Rider2025.2\plugins\reqnrollriderplugin\dotnet;C:\Users\UI_REDACTED\AppData\Roaming\JetBrains\Rider2025.2\plugins\ReSharperPlugin.CognitiveComplexity\dotnet;C:\Users\UI_REDACTED\AppData\Roaming\JetBrains\Rider2025.2\plugins\ReSharperPlugin.Verify\dotnet
SESSIONNAME = Console
SNC_LIB = C:\Program Files (x86)\SAP\SNCEncryption\x86\sapsncencryption.dll
SNC_LIB_64 = C:\Program Files (x86)\SAP\SNCEncryption\x64\sapsncencryption.dll
SNOW_AGENT = C:\Program Files\Snow Software\Inventory\Agent\
SystemDrive = C:
SystemRoot = C:\WINDOWS
TEMP = C:\Users\UI_REDACTED\AppData\Local\Temp\1
TMP = C:\Users\UI_REDACTED\AppData\Local\Temp\1
TNS_ADMIN = C:\Oracle\Network\Admin
USERDNSDOMAIN = REDACTED.LOCAL
USERDOMAIN = REDACTED
USERDOMAIN_ROAMINGPROFILE = REDACTED
USERNAME = UI_REDACTED
USERPROFILE = C:\Users\UI_REDACTED
Verify_DisableClipboard = True
windir = C:\WINDOWS
ZES_ENABLE_SYSMAN = 1
Der-Albert.com
#6 Posted : Tuesday, September 30, 2025 3:04:15 PM(UTC)
Rank: Advanced Member

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

Thanks: 14 times
Was thanked: 56 time(s) in 52 post(s)
Also installed got a new computer last week, so this was not this one machine issue. Had this also on the older computer.
Remco
#7 Posted : Tuesday, September 30, 2025 10:25:47 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 997 times
Was thanked: 1343 time(s) in 1246 post(s)
Thanks for these extra details. Right now my theory is that the NCrunch process is inheriting an environment variable that is redirecting the .NET build tools to use an SDK from the JB path shown in the error. I don't see any evidence of this in the environment variables you've posted, but it's possible that the problem is intermittent. If this is indeed the case, then setting the 'Build Sdk' setting should suppress the issue. If we can confirm that the environment variable is responsible then I should be able to implement a permanent fix.
Der-Albert.com
#8 Posted : Wednesday, October 1, 2025 6:16:47 AM(UTC)
Rank: Advanced Member

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

Thanks: 14 times
Was thanked: 56 time(s) in 52 post(s)
You also may find the Env in the Error Reports i send you about this problem over NCrunch.
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.041 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download