保存后自动生成,适用于Visual Studio 2015吗? [英] Automatically Build after save, for Visual Studio 2015?

查看:69
本文介绍了保存后自动生成,适用于Visual Studio 2015吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Visual Studio时,我希望它可以连续构建我的项目.也就是说,每次保存后,开始构建.我倾向于研究大型(超过35个项目)解决方案,因此拥有所有最新信息可以节省我启动应用程序的时间.

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在键入时会给您带来编译器错误,但实际上并没有运行完整的构建过程,这意味着您仍然需要在调试或运行测试之前告诉VS进行构建并等待其完成.

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的 .Net恶魔曾用于执行这种操作后台编译,它确实很有用,但是由于"Visual Studio 2015将引入Microsoft的新Roslyn编译器以及我们认为使.NET Demon变得多余的改进,因此已停止使用."

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."

在IDE中保存文件或修改项目之后,是否可以使用选项或扩展程序使Visual Studio 2015自动启动生成?

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?

推荐答案

Visual Commander有一个示例扩展,它对已保存的文件运行Cppcheck .您可以将Cppcheck替换为 DTE.ExecuteCommand("Build.BuildSolution");

There is a sample extension for Visual Commander that runs Cppcheck on the saved file. You can replace Cppcheck with DTE.ExecuteCommand("Build.BuildSolution");

这篇关于保存后自动生成,适用于Visual Studio 2015吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆