The compiler can be invoked either as an executable program, sc.exe, with parameters similar to those of the Microsoft C# compiler, csc.exe. Run the program with no arguments and it will show available options.

The compiler also comes as an MSBuild task (and an accompanying .targets file), which is likely to be the most common way of invoking it. When doing this, many of the projects setting in Visual Studio keep working and are passed to this task.


The compiler is able to minimize non-public names. Unlike Script#, SaltarelleCompiler will only create one script file with each build. Whether this script is minimized is mapped to the -debug option (on the command line), or the Debug Info setting (under Properties / Build / Advanced) if using Visual Studio (debug info none will minimize the script, other settings will preserve them).