The Macros IDE does not save changes automatically when you close it in Visual Studio .NET or Visual Studio 2005 (835455)



The information in this article applies to:

  • Microsoft Visual Studio .NET (2003), 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 Studio 2005 Professional Edition
  • Microsoft Visual Studio 2005 Standard Edition

SYMPTOMS

In Microsoft Visual Studio .NET or Microsoft Visual Studio 2005, you use the Macros IDE to make changes to a macro. However, when you close the Macros IDE, it does not save the changes automatically and you do not receive a prompt to save the changes. Therefore, the changes are not saved.

WORKAROUND

To work around this behavior, save the changes that you have made to your macro before you close the Macros IDE.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to reproduce the behavior

  1. Start Visual Studio .NET or Visual Studio 2005.
  2. On the Tools menu, point to Macros, and then click Macro Explorer.
  3. In Macro Explorer, right-click MyMacros, and then click New module. The Add Module dialog box appears.
  4. In Name box, type TestModule, and then click Open.
  5. In Macro Explorer, right-click TestModule, and then click Edit. The Macros IDE starts.
  6. Add a function to the TestModule module as follows:
    Imports EnvDTE
    Imports System.Diagnostics
    
    Public Module TestModule
    
        Function Sample()
         ' Sample code
        End Function
    
    End Module
  7. On the File menu, click Close and Return.

    Do not save the changes that you have made to the macro.
Note When you close the Visual Studio .NET or Visual Studio 2005 IDE, you receive a prompt to save the changes that you have made to your macro projects. However, if Visual Studio .NET or Visual Studio 2005 quits unexpectedly (crashes) or stops responding (hangs), you may not be able to save the changes. You may also lose track of saved changes because Visual Studio .NET or Visual Studio 2005 does not prompt you to save the changes if you open a new project or if you close the current project without quitting Visual Studio .NET or Visual Studio 2005.

REFERENCES

For more information, visit the following Microsoft Developer Network (MSDN) Web site:

Modification Type:MajorLast Reviewed:2/9/2006
Keywords:kbvs2005swept kbvs2005applies kbmacro kbprb KB835455 kbAudDeveloper