Instantly share code, notes, and snippets.

@bpatra /gist:6098579
Last active Dec 20, 2015

Embed
What would you like to do?
F#-ception, testing Fs2Ps with a very simple example
let myTest = "module dafuq
let x= 5
"
//disk path to FSharp code dom provider
let codDomPath = @"<myPath>\FSharp.Compiler.CodeDom.dll"
let psCode = FsToPs codDomPath myTest "dafuq" "x"
//write script to file to test it.
use streamWriter = File.CreateText("simpleExample.ps1")
streamWriter.Write(psCode)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment