Skip to content

Commit f070db4

Browse files
do not use StringComparison.InvariantCultureIgnoreCase because it make build failing on .NET Core
1 parent 0c1f673 commit f070db4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/fsharp/FSharp.Compiler.Service.ProjectCracker/ProjectCracker.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ type ProjectCracker =
1818

1919
let rec convert (opts: Microsoft.FSharp.Compiler.SourceCodeServices.ProjectCrackerTool.ProjectOptions) : FSharpProjectOptions =
2020
let referencedProjects = Array.map (fun (a, b) -> a, convert b) opts.ReferencedProjectOptions
21+
2122
let sourceFiles, otherOptions =
22-
opts.Options |> Array.partition (fun x -> x.EndsWith (".fs", StringComparison.InvariantCultureIgnoreCase))
23+
opts.Options |> Array.partition (fun x -> Path.GetExtension(x).ToLower() = ".fs")
2324

2425
let sepChar = Path.DirectorySeparatorChar
2526

0 commit comments

Comments
 (0)