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

Commit a5d02b5

Browse files
KevinRansomnosami
authored andcommitted
Allow notebook to discover location of shared framework (dotnet#9596)
1 parent 688cbf6 commit a5d02b5

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
@@ -126,12 +126,12 @@ module internal Utilities =
126126
| value when not (String.IsNullOrEmpty(value)) ->
127127
Some value // Value set externally
128128
| _ ->
129-
// Probe for netsdk install
129+
// Probe for netsdk install, dotnet. and dotnet.exe is a constant offset from the location of System.Int32
130130
let dotnetLocation =
131131
let dotnetApp =
132132
let platform = Environment.OSVersion.Platform
133133
if platform = PlatformID.Unix then "dotnet" else "dotnet.exe"
134-
let assemblyLocation = typeof<DependencyManagerAttribute>.GetTypeInfo().Assembly.Location
134+
let assemblyLocation = typeof<Int32>.GetTypeInfo().Assembly.Location
135135
Path.Combine(assemblyLocation, "../../..", dotnetApp)
136136

137137
if File.Exists(dotnetLocation) then

0 commit comments

Comments
 (0)