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

Notification

Icon
Error

NCrunch does not work if dotnet is not installed at C:
GreenMoose
#1 Posted : Monday, July 11, 2022 3:13:02 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 507

Thanks: 145 times
Was thanked: 66 time(s) in 64 post(s)
[v4.13.0.1]

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

[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:
Quote:

>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:
Quote:

.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.
Remco
#2 Posted : Tuesday, July 12, 2022 12:20:57 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
GreenMoose;16205 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.
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.027 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download