Microsoft KB Archive/836666

From BetaArchive Wiki
Knowledge Base


The "Unable to Apply Code Changes Dialog Box" 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 "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.


REFERENCES

For more information, visit the following MSDN Web sites:

Project Dependencies dialog box


Project Dependencies, Common Properties, Solution Property Pages dialog box


Creating and removing project dependencies


Edit and Continue, Debugging, Options dialog box


Keywords: kbvs2005swept kbvs2005applies kbvs2002sp1sweep kbideproject kbide kbbug kbdocerr kbdlg kbdebug KB836666