Created
October 8, 2012 18:10
-
-
Save stefanalfbo/3853979 to your computer and use it in GitHub Desktop.
vb6 helper for FAKE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let vb6exe = | |
ProgramFilesX86 @@ "Microsoft Visual Studio\\VB98" @@ "VB6.exe" | |
let VB6Build outputPath projects = | |
let build outputPath project = | |
traceStartTask "VB6Build" project | |
let args = sprintf "/make %s /outdir %s" project outputPath | |
tracefn "Building project: %s\n %s %s" project vb6exe args | |
if not (execProcess3 (fun info -> | |
info.FileName <- vb6exe | |
info.Arguments <- args) TimeSpan.MaxValue) | |
then failwithf "Building %s project failed." project | |
traceEndTask "VB6Build" project | |
projects | |
|> List.iter (fun project -> build outputPath project) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment