Results 1 to 10 of 10

Thread: tooltips for members of classes [RESOLVED]

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    tooltips for members of classes [RESOLVED]

    arent the tooltips supposed to pop up in intellisense when you start typing stuff in? I compiled about 6 classes into one .dll and each property and each method and each class has a ///summary section but not one of them are being displayed.

    What am i doing wrong?

    I compiled and referenced the dll from the DEBUG folder of the c# project in my vb test project. Should I be compiling a 'release' build?
    Last edited by Andy; Aug 13th, 2004 at 12:07 PM.

  2. #2
    Lively Member JAtkinson's Avatar
    Join Date
    Feb 2004
    Location
    Richmond, VA
    Posts
    68
    Ive had this same problem in my classes. I would use the /// above the methods and also go to the project properties and set the XML to save like it should. Yet, when I built the solution and used the dll, I still didnt get any comments in intelliscense other than what type of variables are accepted.
    Visual Studio .net 2003 EA
    VB .net
    C#

  3. #3
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    I assume you compiled the dll with the proper switch to create the comment file?
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

  4. #4
    Lively Member JAtkinson's Avatar
    Join Date
    Feb 2004
    Location
    Richmond, VA
    Posts
    68
    Could you give a few more specifics?
    Visual Studio .net 2003 EA
    VB .net
    C#

  5. #5
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    from the command line, VS.Net doesn't support this.

    If you want to compile you class and export you comments to an xml file just do this

    Assume file is Test.cs
    Code:
    csc /doc:Test.xml Test.cs
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    from the command line? I've always used the Build menu option. How do you use the command line? is it the same cl as Start/Run/cmd?

  7. #7
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    Yes, you have to use the command line to compile the comments in C#, because this is a feature that VB.NET doesn't have.

    If you have VS.NET, then the command prompt should be located at.

    Start>Programs>Microsoft Visual Studio .NET>Visual Studio.NET Tools>Visual Studio.NET Command Prompt
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

  8. #8
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Originally posted by Memnoch1207
    from the command line, VS.Net doesn't support this.

    If you want to compile you class and export you comments to an xml file just do this

    Assume file is Test.cs
    Code:
    csc /doc:Test.xml Test.cs
    The IDE sure does support this functionalily. Right click the project, go to properties. Then click on the Configuration Settings section. You will see a XML Documentation File setting. Put in the filename there. Use the same name as the project itself but with a .xml extension.

  9. #9
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Another thought if the above doesn't work. You need to comment ALL publicly accessible members in each class. For some reason the compiler will trip up on it sometimes if it encounters a public variable or method that doesn't have a comment. (even the constructor needs a comment sometimes). This doesn't happen all the time, but I have seen it get tripped up before.

    Next, go ahead and compile your project, it will generate the document file. Now unreference and rereference your dll in your other application. They should then show.

    Had the same problem a bit ago and that was how I solved it.
    Last edited by hellswraith; May 21st, 2004 at 04:19 PM.

  10. #10
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    Excellent. I didn't know that was there!
    Know I don't have to keep using the f***ing command line to do it!

    Thanks Hellswraith!
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

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