@@ -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,17 +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- // CI build output
41- Path.Combine ( " .. " , " build " , projectArtifactName )
42- // Release build
43- Path.Combine ( projectDir , " bin " , " Release " , dotNetMoniker , projectArtifactName )
44- // Debug build
45- Path.Combine ( projectDir , " bin " , " Debug " , dotNetMoniker , projectArtifactName )
46- // Default build output (no custom output path )
47- Path.Combine( projectDir, " bin" , " Release " , projectArtifactName)
48- Path.Combine ( projectDir , " bin " , " Debug " , projectArtifactName )
49- ]
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
5049
5150 let foundDll = possiblePaths |> List.tryFind File.Exists
5251
0 commit comments