Skip to content

Commit 5bfe30b

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

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

RELEASE_NOTES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## [Unreleased]
44

5+
### Changed
6+
* Improve `ProjectCracker` project resolution to handle `*.slnf` and `*.slnx`. [#1213](https://github.com/fsproject
7+
s/FSharp.Formatting/pull/1213)
8+
59
## [22.0.1] - 2026-04-19
610

711
### Changed

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)