Is it possible for Visual Studio 2008 Automatically create XML Comments tags without “Generate XML documentation file” checked (VB.NET only)?

StackOverflow https://stackoverflow.com/questions/1088837

Question

When in VS 2008 if a developer hits the ''' it generates the XML comment tags for you, but this only works when the project setting for "Generate XML documentation file" is checked.

Is there a way to tell VS to generate the XML Comment tags, regardless of the project setting?

I think it is possible that someone may want comments but not create a XML documentation file.

In this case I am exceeding the current Team Settings, yet other developers don't want me to change this project setting. This forces me to flip this back before checking in the project.

I have the same problem with other Project settings like "code Analysis".

This is only a problem for VB.NET projects.

Was it helpful?

OTHER TIPS

I know this is an old post however I have found a work around that may work for you depending if you team members just want the XML comments functionality and not the XML files.

1) In your project properties ensure that Generate XML documention file is checked.
2) Click the Build Events button
3) Into the Post-build event command line box enter the command

Del "$(OutDir)$(ProjectName).xml"

Now after each build it will remove the XML comment file.

Note: For some reason if it exists from a previous build it will not delete it so manually delete it the first time.

As far as I know, it will always create the xml comments....the Generate XML documentation I think only affects whether those comments are then compiled into an xml file.

Is it behaving like this on everyone's machine?

http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=477562

but obviously you already know that since you opened up the Connect issue.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top