VS2008:禁用询问是否重新加载在 IDE 外更改的文件 [英] VS2008: Disable asking whether to reload files changed outside the IDE
问题描述
我有一个 Visual Studio 2008 项目,其中每次构建都会生成一些代码文件(一个解析器,通过 MSBuild 集成,也就是编辑 *.csproj 文件).VS 不知道这些文件的生成性质(即它们不是自定义工具"的结果).所以它们自然会随着每次构建改变".VS2008 在每次构建后询问我如果我想重新加载这些文件:
I have a Visual Studio 2008 project where some code files are generated with each build (a parser, integrated via MSBuild aka editing the *.csproj file). VS does not know about the generated nature of these files (i.e. they are not the result of a "Custom Tool). So they "change" with every build, naturally. And VS2008 asks me after every build if I would like to reload those files:
此文件已在源外修改
要重新加载吗?
This file has been modified outside the source
Do you want to reload it?
如果我在我面前打开这些文件中的一个就可以了,但是即使没有打开任何代码文件,我也会得到这些模态对话框.
That would be ok if I had one of those files opened and in front of me, but I get these modal dialogs even with none of the code files opened.
所以我的问题是:是否可以按项目、每个解决方案或全局禁用此对话框?
谢谢!
推荐答案
对于 VS2008:Tools
> Options
> Documents
> 检测文件何时在环境外更改
For VS2008: Tools
> Options
> Documents
> Detect when a file is changed outside the environment
对于 VS2010/2012/2013/2015:Tools
> Options
> Environment
> Documents
> 检测文件何时在环境外发生变化
For VS2010/2012/2013/2015: Tools
> Options
> Environment
> Documents
> Detect when a file is changed outside the environment
这篇关于VS2008:禁用询问是否重新加载在 IDE 外更改的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!