Results 1 to 8 of 8

Thread: [RESOLVED] Documentation, Explanation and Annotation of Program Code

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2005
    Posts
    163

    Resolved [RESOLVED] Documentation, Explanation and Annotation of Program Code

    We are just about to start a couple on new "major" (or at least major for us) projects and I wanted to create an internal policy to define the way in which we document and annoatate the code:
    - is the there a defined methology somewhere for VB.NET code; and
    - are there any inbuilt tools in VStudio 2005 to help with this?
    chilling

  2. #2
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,521

    Re: Documentation, Explanation and Annotation of Program Code

    Take a look at this
    Also if you type ''' you get this
    VB Code:
    1. ''' <summary>
    2.     '''
    3.     ''' </summary>
    4.     ''' <param name="sender"></param>
    5.     ''' <param name="e"></param>
    6.     ''' <remarks></remarks>

    When the app is compiled it creates an xml file. There are other nodes you can add to this. Type '''< and intelisense will help you out.
    Visual Studio Team Edition 2005
    GDI+ Links: Bob Powell VB.Net Heaven
    API Links: All API Pinvoke.Net
    VB6 to VB.Net: Visual Basic 6 to .NET Function Equivalents (Thread)

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Documentation, Explanation and Annotation of Program Code

    Further to what mpdeglau posted, those XML files are used by Intellisense to provide descriptions of your properties, methods and arguments. You can also use a tool like NDoc to create MSDN-style CHM documentation for your classes from those files.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4
    Fanatic Member Mr.No's Avatar
    Join Date
    Sep 2002
    Location
    Mauritius
    Posts
    651

    Re: Documentation, Explanation and Annotation of Program Code

    Also if you type ''' you get this

    VB Code:
    1. ''' <summary>
    2.         '''
    3.         ''' </summary>
    4.         ''' <param name="sender"></param>
    5.         ''' <param name="e"></param>
    6.         ''' <remarks></remarks>
    Is this feature available in VS .NET 2003? If not how can I do this?

    Thanks
    Using VB.NET 2003/.NET 1.1/C# 2.0
    http://del.icio.us/rajoo
    Blow your mind, smoke gunpowder
    Ashes to ashes, dust to dust
    If God won't have you, the devil will. - Author unknown
    Don't follow me, I'm lost too ...

  5. #5
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Documentation, Explanation and Annotation of Program Code

    Here is an addin for VS that lets you use XML comments in VB.NET 2003.

    http://www.gotdotnet.com/workspaces/...a-86bdf39a17dd

  6. #6
    Fanatic Member Mr.No's Avatar
    Join Date
    Sep 2002
    Location
    Mauritius
    Posts
    651

    Re: Documentation, Explanation and Annotation of Program Code

    I googled after my posting and found VBCommenter PowerToy Development VBCommenter PowerToy Development
    Using VB.NET 2003/.NET 1.1/C# 2.0
    http://del.icio.us/rajoo
    Blow your mind, smoke gunpowder
    Ashes to ashes, dust to dust
    If God won't have you, the devil will. - Author unknown
    Don't follow me, I'm lost too ...

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Sep 2005
    Posts
    163

    Re: Documentation, Explanation and Annotation of Program Code

    Thanks Guys - as I am using VS 2005 the inbuild ''' works just fine for me
    chilling

  8. #8
    Fanatic Member Mr.No's Avatar
    Join Date
    Sep 2002
    Location
    Mauritius
    Posts
    651

    Re: [RESOLVED] Documentation, Explanation and Annotation of Program Code

    Here is an addin for VS that lets you use XML comments in VB.NET 2003.
    Thanks Penagate.
    Using VB.NET 2003/.NET 1.1/C# 2.0
    http://del.icio.us/rajoo
    Blow your mind, smoke gunpowder
    Ashes to ashes, dust to dust
    If God won't have you, the devil will. - Author unknown
    Don't follow me, I'm lost too ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width