The IDE stops responding when you use a macro to automate your project build in Visual Studio .NET (330209)
The information in this article applies to:
- Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
This article was previously published under Q330209 SYMPTOMSIf you use a macro script to run an automated build of your project, Microsoft Visual Studio .NET may appear to stop responding during the automated build.CAUSEThis problem may occur if the macro build
code does not include a sufficient delay between the call to the Open method that opens the solution and the call to the Build method. Typically, this problem occurs on a computer that has a slower processor because the Open method has not completed when the macro calls the Build method.RESOLUTIONTo resolve this problem, use the System.Threading.Thread.Sleep(5000) method to introduce a delay after the call to the Open method.
Note You may have to increase the Sleep value, depending on the processor speed of your computer.STATUS
This behavior is by design.REFERENCESFor more information about how to automate tasks in the Visual Studio .NET
development environment, visit the following Microsoft
Developer Network (MSDN) Web site:
Modification Type: | Major | Last Reviewed: | 12/10/2003 |
---|
Keywords: | kbprb KB330209 kbAudDeveloper |
---|
|