a wrapper around the F# compiler
usage: fscr [-t exe|library] <script.fsx / project.fsproj> (default: exe)the output is created into bin/ and executed after compiling,
- with
-t librarya dll is created and not ran
the reason to use this over dotnet build or dotnet run is:
- that it takes 300ms to recompile and run after changes (instead of several seconds!)
- all dll references are symlinked instead of copied
- the compilation is done with an in-memory filesystem
- the same compiler process is reused after first compilation
example: running unit tests in a project
test-loop.mp4
example: running script
fscr.mp4
compile the project from source with Ready2Run, this drastically reduces startup time:
cd src/fscrdotnet publish -p:PublishReadyToRun=true --ucr