@@ -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-
3130let 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