Skip to content

Instantly share code, notes, and snippets.

@stefanalfbo
Created October 8, 2012 18:10
Show Gist options
  • Save stefanalfbo/3853979 to your computer and use it in GitHub Desktop.
Save stefanalfbo/3853979 to your computer and use it in GitHub Desktop.
vb6 helper for FAKE
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