Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/baronfel/fsharp-powershell-test


https://github.com/baronfel/fsharp-powershell-test

Last synced: 9 days ago
JSON representation

Awesome Lists containing this project

README

        

## FSharp-Powershell Add-Type Integration Test

### Init

Run `.paket/paket.exe restore` to download the FSharp.Compiler.CodeDom and FSharp.Core libraries.
The versions are described in `paket.dependencies` and explicit locked versions are in `paket.lock`

### Test

Run `fs_codedom.ps1` to demonstrate loading the CodeDom Provider and using it to generate and run code

### Result

```
D:\code\scratch> .\fs_codedom.ps1
4
3
2
1
```

## Isolated environment (requires docker)

run `test-env.cmd` to get a completely dependency-free (aside from having powershell core installed) powershell prompt. then run `cd code` to go to the working directory and `./fs_codedom.ps` to run the script. Exit the shell with `exit`