views:

419

answers:

5

Is there a way to generate a readable document file from the documentation on the code directly from Visual Studio? (also considering 2010)

If there isn't, what should I use to create a CHM or HTML file?

Code example:

/// <summary>
/// Convert a number to string
/// </summary>
/// <param name="number">An integer number to be converted to string</param>
/// <returns>Number as string</returns>
/// <example>
/// <code>
///     var s = MyMethod(5);
/// </code>
/// </example>
/// <exception cref="Exception">In case it can't convert</exception>
/// <remarks>
/// Whatever
/// </remarks>
public string MyMethod(int number)
{
    return number.ToString();
}
+7  A: 

Use DocProject. It can create HTML docs as well CHM. You should install Sandcastle first.

Fernando
+1 for beating me to it :)
Erv Walter
It is not working on my Windows 7 x64. DocProject just crash all the time
BrunoLM
+1  A: 

Check out doxygen

Stephen Nutt
A: 

you can find the sofe to make the chm file from the internet

+1  A: 

VSdocman can do it directly from Visual Studio.

Peter Macej
Great tool! Already works with Visual Studio 2010, very simple to use and generate great documentations.
BrunoLM
A: 

Sandcastle Help File builder is another one

TheOCD