Build/Test Issues

NCrunch does not work if dotnet is not installed at C:

Started by GreenMoose on 1,531 views

[v4.13.0.1]

I have installed dotnet at G:, but NCrunch fails with error below:

[PID:6464 17:07:33.5543 LocalBuildTask-183] ERROR (Internal): System.Exception: Unable to find an installation of .NET Core at the expected install path of 'C:\Program Files\dotnet'


(I have no such dir at all:

>dir 'C:\Program Files\dotnet'
Get-ChildItem: Cannot find path 'C:\Program Files\dotnet' because it does not exist.

dotnet build works fine.

Output from dotnet --info:

.NET SDK (reflecting any global.json):
Version: 6.0.301
Commit: 43f9b18481

Runtime Environment:
OS Name: Windows
OS Version: 10.0.19044
OS Platform: Windows
RID: win10-x64
Base Path: G:\ProgramFiles\dotnet\sdk\6.0.301\

Host (useful for support):
Version: 6.0.6
Commit: 7cca709db2

.NET SDKs installed:
6.0.301 [G:\ProgramFiles\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.6 [G:\ProgramFiles\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.6 [G:\ProgramFiles\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.6 [G:\ProgramFiles\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download


p.s. To get dotnet installed on another drive I modified the ProgramFiles shell folder before installing vstudio 2022, and then reverting it back to C: again d.s.
GreenMoose wrote:[v4.13.0.1]
p.s. To get dotnet installed on another drive I modified the ProgramFiles shell folder before installing vstudio 2022, and then reverting it back to C: again d.s.


Thanks for letting me know how you did this. I was scratching around to try and find ways people might install it to a different path, since the installer gives you no options.

I don't think we can actually support an installation of it that isn't under program files. It seems that the toolset is designed to live there, and trying to infer its location using any other method is likely to be less reliable and cause bigger long term issues.

Post a reply

Log in to reply.