The "Unable to Apply Code Changes Dialog Box" Help topic is not complete in Visual Studio 2005 and in Visual Studio .NET (836666)



The information in this article applies to:

  • Microsoft Visual Studio 2005 Standard Edition
  • Microsoft Visual Studio 2005 Professional Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2003), Academic Edition
  • Microsoft Visual Studio .NET (2002), Professional Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2002), Academic Edition
  • Microsoft Visual C# .NET (2003)
  • Microsoft Visual C# .NET (2002)
  • Microsoft Visual Basic .NET (2003)
  • Microsoft Visual Basic .NET (2002)
  • Microsoft Visual J# .NET (2003)
  • Microsoft Visual J# .NET (2002)

INTRODUCTION

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

MORE INFORMATION

The "Restart" section in the "Unable to Apply Code Changes Dialog Box" Help topic states the following:

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

The "Restart" 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.


Modification Type:MajorLast Reviewed:3/4/2006
Keywords:kbvs2005swept kbvs2005applies kbvs2002sp1sweep kbIDEProject kbide kbBug kbdocerr kbDlg kbDebug KB836666 kbAudDeveloper