Microsoft KB Archive/946452

= You may experience performance issues in the IDE after you use Visual Studio 2008 to build a Visual Basic project =

Article ID: 946452

Article Last Modified on 12/17/2007

-

APPLIES TO


 * Microsoft Visual Studio 2008 Team Suite
 * Microsoft Visual Studio 2008 Team Edition for Database Professionals
 * Microsoft Visual Studio 2008 Team Edition for Software Architects
 * Microsoft Visual Studio 2008 Team Edition for Software Developers
 * Microsoft Visual Studio 2008 Team Edition for Software Testers
 * Microsoft Visual Studio 2008 Standard Edition
 * Microsoft Visual Studio 2008 Professional Edition
 * Microsoft Visual Studio 2008 Academic Edition
 * Microsoft Visual Basic 2008 Express Edition

-



SYMPTOMS
Consider the following scenario:
 * You use Microsoft Visual Studio 2008 to build a Microsoft Visual Basic project.
 * The Visual Basic project contains lots of XML comments in a single file.
 * The file is most likely a designer-generated file for a dataset or for a Web reference.

In this scenario, you may experience the following performance issues in the IDE:
 * The IDE takes longer to build the solution and to rebuild the solution.
 * You experience a slow response time when you press F5 to start debugging.
 * You experience a slow response time in the Code Editor.
 * You experience a slow response time in IntelliSense.



CAUSE
This problem occurs because of how the Visual Studio 2008 compiler processes large files that contain XML documentation.



WORKAROUND
To work around this problem, use one of the following methods.

Method 1. Disable XML comment generation
To disable XML comment generation for your project, follow these steps.

Visual Studio 2008

 * 1) In Solution Explorer, right-click , and then click Properties.
 * 2) On the Compile tab, click to clear the Generate XML documentation file check box.
 * 3) On the File menu, click Save All.

Visual Basic 2008 Express Edition

 * 1) Create a backup of your project.
 * 2) In Notepad, open the .vbproj file for your project.
 * 3) Locate and then delete all  elements in the .vbproj file.

Note Typically, you will delete two elements in the .vbproj file.

Method 2. Remove the XML comments
To remove the XML comments, follow these steps for the designer-generated file:
 * 1) On the Edit menu, point to Find and Replace, and then click Quick Replace.
 * 2) In the Find what box, type '''.
 * 3) In the Replace with text box, type '', and then click Replace All.

Note You must repeat these steps if you take one of the following actions:
 * You save the designer file that generated this code file.
 * You refresh your Web reference.
 * You right-click the file and then click Run Custom Tool.

Method 3. Create a separate project to store the file that has the XML comments
Create a new class library project to store your designer-generated files. For example, follow these steps:
 * 1) Create a new class library project to store files that contain a dataset or a Web reference.
 * 2) Add a reference to the new class library project in the original Visual Basic project.
 * 3) Use Method 1 to disable the XML documentation file.

Note You may have to add import statements to your Visual Basic code.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
For more information about how to generate XML documentation for a project, visit the following Microsoft Developer Network (MSDN) Web site:

http://msdn2.microsoft.com/en-us/library/x4sa0ak0(VS.90).aspx

Additional query words: vs2008 vb 2008

Keywords: kbtshoot kbpubtypekc kbprb KB946452

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.