From d7bddad106b4f12aabd5a1e4254bae52f3951796 Mon Sep 17 00:00:00 2001 From: Kevin Ransom Date: Fri, 17 Jul 2020 22:14:00 -0700 Subject: [PATCH] Properly fix find dotnet.exe --- .../FSharp.DependencyManager.Utilities.fs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fsharp/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Utilities.fs b/src/fsharp/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Utilities.fs index a79a10a95f7..0463fbd55a9 100644 --- a/src/fsharp/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Utilities.fs +++ b/src/fsharp/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Utilities.fs @@ -131,8 +131,8 @@ module internal Utilities = let dotnetApp = let platform = Environment.OSVersion.Platform if platform = PlatformID.Unix then "dotnet" else "dotnet.exe" - let assemblyLocation = typeof.GetTypeInfo().Assembly.Location - Path.Combine(assemblyLocation, "../../..", dotnetApp) + let assemblyLocation = Path.GetDirectoryName(typeof.GetTypeInfo().Assembly.Location) + Path.GetFullPath(Path.Combine(assemblyLocation, "../../..", dotnetApp)) if File.Exists(dotnetLocation) then Some dotnetLocation