Microsoft KB Archive/836666

= The &quot;Unable to Apply Code Changes Dialog Box&quot; Help topic is not complete in Visual Studio 2005 and in Visual Studio .NET =

Article ID: 836666

Article Last Modified on 11/27/2007

-

APPLIES TO


 * Microsoft Visual Studio 2005 Standard Edition
 * Microsoft Visual Studio 2005 Professional Edition
 * Microsoft Visual Studio .NET 2003 Enterprise Architect
 * Microsoft Visual Studio .NET 2003 Enterprise Developer
 * Microsoft Visual Studio .NET 2003 Academic Edition
 * Microsoft Visual Studio .NET 2002 Professional Edition
 * Microsoft Visual Studio .NET 2002 Enterprise Architect
 * Microsoft Visual Studio .NET 2002 Enterprise Developer
 * Microsoft Visual Studio .NET 2002 Academic Edition
 * Microsoft Visual C# .NET 2003 Standard Edition
 * Microsoft Visual C# .NET 2002 Standard Edition
 * Microsoft Visual Basic .NET 2003 Standard Edition
 * Microsoft Visual Basic .NET 2002 Standard Edition
 * Microsoft Visual J# .NET 2003 Standard Edition
 * Microsoft Visual J# .NET 2003 Standard Edition

-





INTRODUCTION
In the documentation that is included with Microsoft Visual Studio 2005 and with Microsoft Visual Studio .NET, the &quot;Unable to Apply Code Changes Dialog Box&quot; Help topic is not complete. For more information, visit the following Microsoft Developer Network (MSDN) Web site:

http://msdn2.microsoft.com/en-us/library/Aa291464(VS.71).aspx



MORE INFORMATION
The &quot;Restart&quot; section in the &quot;Unable to Apply Code Changes Dialog Box&quot; Help topic states the following:

Stops execution of your application, builds a fresh version, and restarts the application.

The &quot;Restart&quot; section should also contain the following information:

When you are debugging an application that you created by using Microsoft Visual Basic 2005 or Microsoft Visual Basic .NET, Microsoft Visual C# 2005 or Microsoft Visual C# .NET, or Microsoft Visual J# 2005 or Microsoft Visual J# .NET, you edit the code, and then you try to resume running your application. However, Visual Studio 2005 or Visual Studio .NET does not apply your code changes and the Unable to Apply Code Changes dialog box appears. This behavior occurs because Visual Studio 2005 or Visual Studio .NET does not support the Edit and Continue feature for these programming languages.

If you click Restart in the Unable to Apply Code Changes dialog box, you may notice that Visual Studio 2005 or Visual Studio .NET stops running your application, builds a fresh version of your application, and then runs the old version of your application. This behavior occurs if you are debugging a solution that contains multiple projects and you have specified the build order for your solution to build a dependent project before the project that it depends on is built.

Depending on the project dependencies and the build order that you specify for the projects that are in your solution, you may notice different project outputs. To make sure that Visual Studio 2005 or Visual Studio .NET runs the latest version of your application, you must correctly specify the project dependencies and the build order for the projects that are in your solution.

