VS2008:禁用询问是否重新加载IDE外部更改的文件 [英] VS2008: Disable asking whether to reload files changed outside the IDE

查看:149
本文介绍了VS2008:禁用询问是否重新加载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> Detect when a file is changed outside the environment

For VS2008: Tools > Options > Documents > Detect when a file is changed outside the environment

对于VS2010/2012/2013/2015:Tools> Options> Environment > Documents> Detect when a file is changed outside the environment

For VS2010/2012/2013/2015: Tools > Options > Environment > Documents > Detect when a file is changed outside the environment

这篇关于VS2008:禁用询问是否重新加载IDE外部更改的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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