Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2008: Disable asking whether to reload files changed outside the IDE

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.

So my question is: Is there a way to disable this dialog, per project, per solution or globally?

Thanks!

like image 471
Christian Klauser Avatar asked Jul 16 '09 19:07

Christian Klauser


3 Answers

For VS2008: Tools > Options > 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

like image 197
Tim Sylvester Avatar answered Oct 31 '22 11:10

Tim Sylvester


In Visual Studio Pro 2012

There is an "Auto-Load changes, if saved" that works.

Tools > Options > Environment > Documents > Detect when a file is changed > Auto-Load changes, if saved

like image 11
Brad Avatar answered Oct 31 '22 09:10

Brad


Because a picture paints a thousand words...

enter image description here

like image 9
Drew Noakes Avatar answered Oct 31 '22 09:10

Drew Noakes