-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specifying non-standard location dotnet install via DOTNET_ROOT
not working
#282
Comments
@Sharpiro, Can you set the environment variable |
I actually figured out the problem and the workaround is to ensure there are no hyphens in the dotnet root path.
This is problematic considering the default download of a portable dotnet install contains hyphens: |
That line is meant to strip off an optional prerelease suffix from the version number. It is parsing only the version directories under string fxrDir = Path.Combine(dotnetRoot, "host", "fxr");
string[] versionDirs = Directory.GetDirectories(fxrDir); When I extract What is the value of your |
Consider the scenario where |
Oh, I see the problem is that code was assuming |
Fixed in version |
Windows 10
dotnet 8
I have a dotnet install location that I have acquired from the zipped binaries that are made available.
I specified via environment variable
DOTNET_ROOT
that I want it pointed there. However, regardless of if I point it to a fresh dotnet 8 runtime or sdk install, I always get the errorFailed to find an installed .NET host compatible with target version 8.0
. It is indeed finding the install, as otherwise the error is different, but for whatever reason it deems it to be invalid.I would ideally like to use the environment variable to point to a portable dotnet 8 runtime.
The text was updated successfully, but these errors were encountered: