Macro projects are saved when you run or build a project in Visual Studio 2005 or in Visual Studio .NET (840922)
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
SYMPTOMSIn Microsoft Visual Studio 2005 or in Microsoft Visual Studio .NET, when you open the Microsoft
Visual Studio Macros editor, you may notice that the changes that you
made earlier to a macro project are saved although you did not explicitly
save the changes.CAUSEThis behavior occurs because the Save
changes to open documents only option is selected. This behavior is the default behavior.
Note The Save changes to open documents only option is
located under Build and Run Options in the
Options dialog box in Visual Studio 2005 or in Visual Studio .NET.WORKAROUNDTo work around this behavior, follow these steps:
- Start Visual Studio 2005 or Visual Studio .NET.
- On the Tools menu, click
Options. The Options dialog box
appears.
- Double-click Environment, and then click
Projects and Solutions.
- Under Build and Run Options in the
right pane of the Options dialog box, select Prompt to save changes to open documents or select Don't save changes to open documents.
- Click OK.
- On the File menu, click
Exit to quit Visual Studio 2005 or Visual Studio .NET. The Save changes to
the following items dialog box appears.
- Do one of the following:
- If you want to save the macro that you created, you click
Yes.
- If you want to exit Visual Studio 2005 or Visual Studio .NET without saving
the macro that you created, you click No.
REFERENCESFor more information about macros and about UI elements, visit the following Microsoft
Developer Network (MSDN) Web sites:
Modification Type: | Major | Last Reviewed: | 3/3/2006 |
---|
Keywords: | kbvs2005swept kbvs2005applies kbmacro kbprb KB840922 kbAudDeveloper |
---|
|