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

后端 未结 5 1528
轻奢々
轻奢々 2020-12-16 12:21

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 a

相关标签:
5条回答
  • 2020-12-16 12:50

    This is an old post, but what worked for me was slightly different and I wanted to share:

    This file has been modified outside the source

    Go to Tools -> Options -> Debugging -> General and uncheck "Require source files to exactly match the original version". This allows you to use source code which is not the same as original version.

    0 讨论(0)
  • 2020-12-16 12:53

    Because a picture paints a thousand words...

    enter image description here

    0 讨论(0)
  • 2020-12-16 12:59

    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

    0 讨论(0)
  • 2020-12-16 13:03

    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

    0 讨论(0)
  • 2020-12-16 13:06

    I generate source files on every build, and I don't (normally) get a "file has been modified" message if the file is not open in the editor.

    I was getting it just now, however, on a closed file. (That's why I went searching for this question.)

    I think that's a bug. The file seems to get wedged sometimes. (But this is the first time it has happened in about a year.)

    I think I've found a work-around just now: Open the offending file and then close it again.

    The point is, you shouldn't need to turn off changed file detection.

    0 讨论(0)
提交回复
热议问题