Compiling .NET projects in Sublime Text
07 February 2013
Sublime Text supports custom Build Systems.
By adding MSBuild as a new Build System, it is possible to build Visual Studio projects and solutions without the Visual Studio IDE installed.
Adding the Source Code
File menu, click
Open Folder... and select the root folder of the project to be compiled.
Adding the new Build System
Build System, and click
New Build System...
Paste the following code to a file:
Save the file as
Build System, and select
Running the Build
Tools menu, and select
Build. Alternatively, use the
In the above screenshot, on line 38 a semicolon has been intentionally removed for the demo. After running a build, the compiler detects the missing semicolon.
What about the Tests?
Currently, the easiest way to run the tests is by using a command-line interface version of the test runner.