Last active
December 20, 2015 08:09
-
-
Save bpatra/6098579 to your computer and use it in GitHub Desktop.
F#-ception, testing Fs2Ps with a very simple example
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 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