Welcome to MSDN Blogs Sign in | Join | Help

Sara Ford's Weblog

My adventures embracing open source on CodePlex and at Microsoft

News

    • Did you know... All author proceeds go directly to sending Hurricane Katrina survivors to college.

      Microsoft Visual Studio Tips book

      Recent Entries

Did you know… How to disable the “the source file is different from when the module was built” warning dialog - #294

Sometimes you have different source code files from the version that built your code. Ideally you want the sources to be the same, so you know exactly what is going on with your code. but it happens that you know the particular method hasn’t changed or you know exactly what the diff is.

Or maybe you want to prevent this from happening, because you are not cool with it.

Go to Tools – Options – Debugging – General, and uncheck the “Require source files to exactly match the original version.”

Require source files to exactly match the original version

When this option is unchecked, you can use source code files that don’t match the original, as shown below with the current statement highlight not fully extending the line.

Source code that differs from original, as current statement highlight doesn't expand entire line

and when it is checked, you get this error message.  Pressing the default “No” button will bring up a File browse dialog to locate your source files.

Warning prompt for different source code

Technorati Tags: ,
Posted: Tuesday, August 19, 2008 3:00 AM by saraford

Comments

Visual Studio Hacks said:

My latest in a series of the weekly, or more often, summary of interesting links I come across related to Visual Studio. The Web Developer Tools Team announced the release of the Dynamic Data Wizard Preview 0806 for VS 2008 SP1 . US ISV Developer Evangelism

# August 21, 2008 10:31 AM

Juby Joseph said:

Thanks a lot... The steps mentioned above worked like a charm for me... Thanks again

# October 10, 2008 11:18 AM
New Comments to this post are disabled
Page view tracker