Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit d2523fe

Browse files
KevinRansomnosami
authored andcommitted
Properly fix find dotnet.exe (dotnet#9712)
1 parent f00c951 commit d2523fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fsharp/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Utilities.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ module internal Utilities =
131131
let dotnetApp =
132132
let platform = Environment.OSVersion.Platform
133133
if platform = PlatformID.Unix then "dotnet" else "dotnet.exe"
134-
let assemblyLocation = typeof<Int32>.GetTypeInfo().Assembly.Location
135-
Path.Combine(assemblyLocation, "../../..", dotnetApp)
134+
let assemblyLocation = Path.GetDirectoryName(typeof<Int32>.GetTypeInfo().Assembly.Location)
135+
Path.GetFullPath(Path.Combine(assemblyLocation, "../../..", dotnetApp))
136136

137137
if File.Exists(dotnetLocation) then
138138
Some dotnetLocation

0 commit comments

Comments
 (0)