From 235df87670611199a3e9eae0b072c89fab42c25b Mon Sep 17 00:00:00 2001 From: Benjamin Moir Date: Thu, 7 Sep 2023 00:10:11 +1000 Subject: [PATCH] Link NetCoreRuntime to .NET installation directory instead of SDK directory --- src/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Program.cs b/src/Program.cs index 726b089..22e6250 100644 --- a/src/Program.cs +++ b/src/Program.cs @@ -120,6 +120,6 @@ void ProcessBuiltInSdkDirectory(string path) assembly.Write(corePath); Console.WriteLine($"Updated language version to {version}."); -Directory.CreateSymbolicLink(Path.Combine(dataPath, "NetCoreRuntime"), sdk.Location); +Directory.CreateSymbolicLink(Path.Combine(dataPath, "NetCoreRuntime"), DotNetInstallation.Current.Location); Directory.CreateSymbolicLink(Path.Combine(dataPath, "DotNetSdkRoslyn"), sdk.RoslynLocation); Console.WriteLine($"Linked to .NET SDK at {sdk.Location}");