Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
 How to: Generate XML Documentation ...
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual Studio
How to: Generate XML Documentation for a Project

The Generate XML documentation file property determines whether an XML file will be generated during compilation. You set this property on the Compile page (for Visual Basic) or Build page (for Visual C#) of the Project Designer. When this option is selected, XML documentation is automatically emitted into an XML file, which will have the same name as your project and the .xml extension.

For more information about XML documentation in Visual Basic projects, see How to: Create XML Documentation in Visual Basic. For Visual C#, see XML Documentation Comments (C# Programming Guide).

TipTip:

In most cases, you do not have to generate XML documentation every time that you compile your project; you may want to wait until the application is completed. For large projects, turning this option off may help speed up compilation.

To generate an XML documentation file for a Visual Basic project

  1. With a project selected in Solution Explorer, on the Project menu, click Properties.

  2. Click the Compile tab.

  3. On the Compile page, select Generate XML documentation file. By default, the file is created under the specified output path, for example, "bin\Debug\Projectname.XML".

To generate an XML documentation file for a Visual C# project

  1. With a project selected in Solution Explorer, on the Project menu, click Properties.

  2. Click the Build tab.

  3. On the Build page, select XML documentation file. By default, the file is created under the specified output path, for example, "bin\Debug\Projectname.XML".

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Creating XML documentation in VB generates build error      CarlosMiguelRodrigues   |   Edit   |   Show History
Hi.

When I use the "Generate XML documentation file" option in my Visual Basic 2008 project, it works fine for a while but, after some builds, it starts generating the following error:

Unable to copy file "obj\Debug\DigestoDC.xml" to "bin\Debug\DigestoDC.xml". Access to the path 'obj\Debug\DigestoDC.xml' is denied.

The only way I can build my project, then, is by un-checking the said option, which, besides the obvious inconvinience, is aggravated by the fact that I'm working on a development team and using sourcesafe - meaning that, there are times when the project file is not available for checkout, and that the project properties cannot be changed.

So, how can I keep XML documentation going, without the error?

Thanks,
Rodrigues
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker