当项目文件更改时,使Visual Studio自动重新加载解决方案 [英] Make Visual Studio auto reload solution when project files change

查看:1334
本文介绍了当项目文件更改时,使Visual Studio自动重新加载解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我当前正在处理的当前项目中,目前有大量的代码搅动,这意味着从源代码管理进行更新可能意味着有时要更改许多csproj文件.众所周知,VS2010没有全部重新加载"按钮,但是您必须重新加载每个项目并确认每次重新加载.

On the current project I am working on, there is, at the moment, a large churn of code, which means updating from source control can mean at times many csproj file changes. As we all know, VS2010 doesn't have a "Reload all" button, but you must reload each project and confirm each reload.

是否有一种方法可以使项目自动重新加载,或者IDE可以检测到该问题并要求重新加载解决方案?

Is there a method where either the project is auto-reloaded or the IDE can detect this and ask for a solution reload?

推荐答案

最终找到了解决方案:

http://lostechies.com/jimmybogard/2011/01/27/reloading-all-projects-with-vscommands/

在网站上报价:

我经常会发现自己在工作 在多个项目的情况下 已经更改,Visual Studio询问 重新加载它们,一次加载一次.这 当我一起工作时会发生 源代码控制,并执行类似的操作 切换分支,执行合并, 或仅整合上游变化. 我必须点击重新加载"一百万 每个变更项目的时间 磁盘,这很烦人.在上面 其中,VS忘记了我拥有的文件 打开,所以我正在处理的每个文件 在关闭.

Quite often I’ll find myself working in situations where multiple projects have changed, and Visual Studio asks to reload them, one at a time. This happens when I’m working a lot with source control, and doing things like switching branches, performing merges, or just integrating upstream changes. I have to click "Reload" a million times for each project that changed on disk, and it’s quite annoying. On top of that, VS forgets which files I have open, so every file that I was working on gets closed.

我可能是最后一个发现的VS用户 关于这个,但是免费的精简版 VSCommands 插件是

I may be the last VS user to find out about this, but a free lite version of the VSCommands plugin is available on the Visual Studio Gallery that does just what I need – reload all changed projects at once, preserving which files I had open:

这篇关于当项目文件更改时,使Visual Studio自动重新加载解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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