forked from Antaris/RazorEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
generateDocs.fsx
31 lines (28 loc) · 1.23 KB
/
generateDocs.fsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// ----------------------------------------------------------------------------
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
// ----------------------------------------------------------------------------
open System.IO
// Force to load our build!
// As long as FSharp.Formatting is using the regular net45 build
// This should work as expected.
#I @"build/net45"
#r @"build/net45/System.Web.Razor.dll"
#r @"build/net45/RazorEngine.dll"
#load "packages/Yaaf.AdvancedBuilding/content/buildConfigDef.fsx"
#load @"buildConfig.fsx"
#load "packages/Yaaf.AdvancedBuilding/content/generateDocsInclude.fsx"
open Fake
// Force load of System.Web.Razor.dll
let someType = typeof<System.Web.Razor.RazorEngineHost>
let printAssemblies msg =
printfn "%s. Loaded Assemblies:" msg
System.AppDomain.CurrentDomain.GetAssemblies()
|> Seq.choose (fun a -> try Some (a.GetName().FullName, a.Location) with _ -> None)
//|> Seq.filter (fun l -> l.Contains ("Razor"))
|> Seq.iter (fun (n, l) -> printfn "\t- %s: %s" n l)
printAssemblies "starting documentation generation"
try RunTargetOrDefault "LocalDoc"
finally
printAssemblies "Documentation generation finished"
printfn "THE END"