When using Visual Studio, I'd like it to build my projects continuously. That is, after every save, kick off a build. I tend to work on large (35+ project) solutions, so having everything up-to-date saves me time when it comes to starting the app.
Roslyn gives you compiler errors as you type, but it doesn't actually run the full build process, which means you still need to tell VS to build and wait for it to complete before debugging or running tests.
Redgate's .Net Demon used to do this kind of background compile, and it was really useful, but it's been discontinued because "Visual Studio 2015 will introduce Microsoft's new Roslyn compiler, with improvements which we believe make .NET Demon redundant."
Is there an option or extension to have Visual Studio 2015 automatically start a build after a file is saved or a project is modified in the IDE?
I started developing a new open source extension that is called BuildOnSave and does exactly that: It builds the current solution or startup project when a file is saved.
It's available on the Visual Studio Extension Gallery: https://visualstudiogallery.msdn.microsoft.com/2b31b977-ffc9-4066-83e8-c5596786acd0
May be you can give it a try. I would very much appreciate feedback.
There is a sample extension for Visual Commander that runs Cppcheck on the saved file. You can replace Cppcheck with DTE.ExecuteCommand("Build.BuildSolution");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With