Skip to content

Commit 0281ffe

Browse files
committed
Improve ProjectCracker project resolution
Handle *.slnf and *.slnx
1 parent 4ed3a99 commit 0281ffe

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/fsdocs-tool/ProjectCracker.fs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,14 @@ module Crack =
507507
let collectionName, projectFiles =
508508
match projects, ignoreProjects with
509509
| [], false ->
510-
match Directory.GetFiles(slnDir, "*.sln") with
510+
let slnFiles =
511+
Directory.GetFiles(slnDir, "*.sln*")
512+
|> Array.filter (fun f ->
513+
f.EndsWith(".sln", StringComparison.Ordinal)
514+
|| f.EndsWith(".slnf", StringComparison.Ordinal)
515+
|| f.EndsWith(".slnx", StringComparison.Ordinal))
516+
517+
match slnFiles with
511518
| [| sln |] ->
512519
printfn "getting projects from solution file %s" sln
513520

0 commit comments

Comments
 (0)