Skip to content

Instantly share code, notes, and snippets.



Last active Dec 20, 2015
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")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.