保存后自动构建,对于 Visual Studio 2015? [英] Automatically Build after save, for Visual Studio 2015?

查看:14
本文介绍了保存后自动构建,对于 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 Demon 曾经做过这种后台编译,它真的很有用,但它已停止使用,因为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."

是否有选项或扩展可以让 Visual Studio 2015 在 IDE 中保存文件或修改项目后自动启动构建?

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.您可以用 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天全站免登陆