Reputation: 163
How do I turn off XML documentation in Visual Studio so the XML documentation comments are not automatically added every time I create a new project/file?
/// <summary>
/// Interaction logic for Window1.xaml
/// </summary>
Upvotes: 1
Views: 1337
Reputation: 2035
To do this you will need to edit the templates for Visual Studio 2008 (which are stored in ZIP files), and then update the cache.
The templates are located in
Copy the zip file to edit to a working folder. Unzip the files, edit the template files, and rezip them back into a zip file. Copy it back to the corresponding template folder.
Once you have edited the template file(s), open up the Visual Studio Command Prompt (you will probably need to run-as administrator) and type in:
devenv /installvstemplates
This will update the cached template folders. (Do not yield to the temptation to edit the cached template files themselves. Your edits will get overwritten and lost next time the cache is refreshed).
For more details, refer to:
Upvotes: 1
Reputation: 35477
To stop VS from producing the XML document files; right-click Properties on your project file and select the Build
tab. Under the Output
div uncheck XML documentation file:
Upvotes: 3