Skip to content

Commit

Permalink
Fixes for FSAC (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof-Cieslak authored Nov 2, 2021
1 parent 117232e commit d6e16bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/Ionide.ProjInfo.ProjectSystem/ProjectSystem.fs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ type ProjectController(toolsPath: ToolsPath, workspaceLoaderFactory: ToolsPath -
let updateState (response: ProjectCrackerCache) =
let normalizeOptions (opts: FSharpProjectOptions) =
{ opts with
SourceFiles = opts.SourceFiles |> Array.filter (FscArguments.isCompileFile) |> Array.map (Path.GetFullPath)
SourceFiles =
opts.SourceFiles
|> Array.filter (FscArguments.isCompileFile)
|> Array.map (Path.GetFullPath)
|> Array.map (fun p -> (p.Chars 0).ToString().ToLower() + p.Substring(1))
OtherOptions =
opts.OtherOptions
|> Array.map
Expand Down
2 changes: 1 addition & 1 deletion src/Ionide.ProjInfo/Library.fs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ module Init =
let private resolveFromSdkRoot (sdkRoot: DirectoryInfo) : Func<AssemblyLoadContext, System.Reflection.AssemblyName, System.Reflection.Assembly> =
Func<AssemblyLoadContext, System.Reflection.AssemblyName, System.Reflection.Assembly>
(fun assemblyLoadContext assemblyName ->
let paths = [ Path.Combine(sdkRoot.FullName, assemblyName.Name + ".dll") ]
let paths = [ Path.Combine(sdkRoot.FullName, assemblyName.Name + ".dll"); Path.Combine(sdkRoot.FullName, "en", assemblyName.Name + ".dll") ]

match paths |> List.tryFind File.Exists with
| Some path -> assemblyLoadContext.LoadFromAssemblyPath path
Expand Down

0 comments on commit d6e16bf

Please sign in to comment.