How to: Manage Automatic Relinking
This topic applies to:
Edition |
Visual Basic |
C# |
F# |
C++ |
Web Developer |
---|---|---|---|---|---|
Express |
|||||
Pro, Premium, and Ultimate |
By default, Edit and Continue relinks your program at the end of a debugging session to create an up-to-date executable.
Edit and Continue cannot relink your program if you are debugging it from a location other than the original build location. A message tells you that you need to rebuild manually.
Edit and Continue does not rebuild static libraries. If you make changes to a static library using Edit and Continue, you need to manually rebuild the library and relink applications using it.
Edit and Continue does not invoke custom build steps. If your program uses custom build steps, you might want to rebuild manually so that custom build steps can be invoked. In that case, you can disable relinking after Edit and Continue to ensure that you are prompted to manually rebuild.
To disable relinking after Edit and Continue
On the Tools menu, click Options.
In the Options dialog box, select the Debugging folder, and then select the Edit and Continue group.
Clear the Relink code changes after debugging check box.
Click OK.
In addition, certain linker options disable Edit and Continue. For more information, see Linker Options that Disable Edit and Continue.