![]() |
Languages »
VB.NET »
General
Intermediate
MSDN style help for VB.NET projects using VBCommenter from GotdotnetBy Adrita BhorCreating Help files for VB.NET |
VB, Windows, .NET 1.0, Visual Studio, Dev
|
|
Advanced Search Add to IE Search |
|
|
|
||||||||||||||||
Its quite important to have project help documentation while working in a team environment. C# has integrated Web Comments generator which makes this task quite easy. As for VB.NET developers, this is not the case. But the GotDotNet PowerToys community has developed a tool called VBCommenter, which is an add-in in the VS.NET IDE. This tool allows us to create C# like comments in our VB.NET code and convert them into an XML file during project builds. This output XML file can be used along with NDoc to create quick and easy help files for your projects.
Integrating Help into Visual Studio.NET and C# Documenting and Commenting are very good articles on how one can create and use help files in C# projects. This article is conceptually similar, except it is applicable in VB.NET environment.
Following are required to start this process:
Step1 : After installing VBCommenter in an appropriate directory, it is shown as an add-in in the VS.NET IDE.
Step2 : VBCommenter Settings dialog opens where you can set the whether you want comments file to be generated at every build, whether XML comments are required in the source file and what type of prefix is required for creating these comments. I usually select the ''' prefix so that i can distinguish between single line comments in the code from the VbCommenter comments at the top of classes and functions.
Step3 : Commenting your code with VbCommenter is easy. You type the prefix (''') right on top of any method, hit Return and the comment block appears. Add your comments and save.
Step4 : Build your project. You will see an XML file in the bin directory with the same name as your project.
Step1 : NDoc asks you to provide an input DLL name and an Input XML file. You also have to enter the type of documentation required. For example, MSDN is selected in the diagram below. Specify a location for the output HTML files in the "OutputDirectory" parameter.
Step2 : Generate the help files using Ctrl+Shift+B.
Thats it! With very little effort, you have MSDN quality Help files for easy accessibility over the intranet. You also have the option of integrating this help in VS.NET IDE. See Integrating Help into Visual Studio.NET
While working with VbCommenter and NDoc I came accross a few hurdles.
General
News
Question
Answer
Joke
Rant
Admin
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 29 Jun 2004 Editor: Nishant Sivakumar |
Copyright 2004 by Adrita Bhor Everything else Copyright © CodeProject, 1999-2009 Web19 | Advertise on the Code Project |