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.
Go to File
menu, click Open Folder...
and select the root folder of the project to be compiled.
Go to Tools
menu, Build System
, and click New Build System...
Paste the following code to a file:
{
"cmd": ["C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\MSBuild.exe", "AutoFixture.sln"],
"working_dir": "${project_path:${folder:${file_path}}}\\Src"
}
Save the file as AutoFixture.sublime-build
.
Go to Tools
menu, Build System
, and select AutoFixture
.
Go to Tools
menu, and select Build
. Alternatively, use the Ctrl+B
command.
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.
Currently, the easiest way to run the tests is by using a command-line interface version of the test runner.