Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
576 views
in Technique[技术] by (71.8m points)

msbuild - Automatically Build after save, for Visual Studio 2015?

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...