Skip to content

Commit

Permalink
Shuffle dependency resolution order nuget > gac > dotnet shared
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveGilham committed Apr 29, 2024
1 parent ce4855d commit fb92eee
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions AltCover.Engine/CecilEx.fs
Original file line number Diff line number Diff line change
Expand Up @@ -140,21 +140,21 @@ type internal AssemblyResolver() as self =

let sources =
[ AssemblyConstants.packageEnv
[ Environment.GetEnvironmentVariable "ProgramFiles"
|> Option.ofObj
|> Option.map (fun p -> Path.Combine(p, dotnetShared))
Some <| Path.Combine(share, dotnetShared)
Some <| Path.Combine(shareLocal, dotnetShared)
AssemblyConstants.dotnetDir
|> Option.map (fun p -> Path.Combine(p, "shared"))
Some AssemblyConstants.nugetCache
[ Some AssemblyConstants.nugetCache
Some <| Path.Combine("usr", monogac)
Environment.GetEnvironmentVariable "WinDir"
|> Option.ofObj
|> Option.map (fun p -> Path.Combine(p, wingac))
Environment.GetEnvironmentVariable "MONO_GAC_PREFIX"
|> Option.ofObj
|> Option.map (fun p -> Path.Combine(p, monogac)) ]
|> Option.map (fun p -> Path.Combine(p, monogac))
Environment.GetEnvironmentVariable "ProgramFiles"
|> Option.ofObj
|> Option.map (fun p -> Path.Combine(p, dotnetShared))
Some <| Path.Combine(share, dotnetShared)
Some <| Path.Combine(shareLocal, dotnetShared)
AssemblyConstants.dotnetDir
|> Option.map (fun p -> Path.Combine(p, "shared")) ]
|> List.choose id ]
|> List.concat
|> List.filter Directory.Exists
Expand Down

0 comments on commit fb92eee

Please sign in to comment.