Skip to content

Commit 5789c96

Browse files
committed
feat(docs): resolve full paths to find FSharpLint.Core.dll
1 parent c9ef3ba commit 5789c96

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

docs/loaders/apirefloader.fsx

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ let rec collectModules pn pu nn nu (m: ApiDocEntity) =
2727
yield! m.NestedEntities |> List.collect (collectModules m.Name m.UrlBaseName nn nu)
2828
]
2929

30-
3130
let loader (projectRoot: string) (siteContet: SiteContents) =
3231
try
3332
// We need the console location as it contains all the dependencies
@@ -36,15 +35,17 @@ let loader (projectRoot: string) (siteContet: SiteContents) =
3635
let projectName = "FSharpLint.Console"
3736
let projectArtifactName = "FSharpLint.Core.dll"
3837
// Try multiple possible locations for the assembly
39-
let possiblePaths = [
40-
// Release build
41-
Path.Combine(projectDir, "bin", "Release", dotNetMoniker, projectArtifactName)
42-
// Debug build
43-
Path.Combine(projectDir, "bin", "Debug", dotNetMoniker, projectArtifactName)
44-
// Default build output (no custom output path)
45-
Path.Combine(projectDir, "bin", "Release", projectArtifactName)
46-
Path.Combine(projectDir, "bin", "Debug", projectArtifactName)
47-
]
38+
let possiblePaths =
39+
[
40+
// Release build
41+
Path.Combine(projectDir, "bin", "Release", dotNetMoniker, projectArtifactName)
42+
// Debug build
43+
Path.Combine(projectDir, "bin", "Debug", dotNetMoniker, projectArtifactName)
44+
// Default build output (no custom output path)
45+
Path.Combine(projectDir, "bin", "Release", projectArtifactName)
46+
Path.Combine(projectDir, "bin", "Debug", projectArtifactName)
47+
]
48+
|> List.map Path.GetFullPath
4849

4950
let foundDll = possiblePaths |> List.tryFind File.Exists
5051

0 commit comments

Comments
 (0)