Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How do I remove internal/private elements from my XML Documentation files?

How do I remove internal/private elements from my XML Documentation files?

Scheduled Pinned Locked Moved C#
questionvisual-studiocomxml
8 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pdohara
    wrote on last edited by
    #1

    I am working on an SDK. Obviously I am very happy with the ability to create documentation from code comments. This is useful for both Intellisense and Documentation. We are using Sandcastle to produce the chm file. Sandcastle allows me to filter out internal and private elements. Unfortunately they are in the XML generated by csc.exe which means they show up in Intellisense. I don't see anyway to filter the output of csc. Can I use Sandcastle to filter the docs? How do other people do this?

    Tanks for your support
    Pat O
    Blog

    _ _ _
    /*\== /*\== /*\==
    <ooo> <ooo> <ooo>

    P 1 Reply Last reply
    0
    • P pdohara

      I am working on an SDK. Obviously I am very happy with the ability to create documentation from code comments. This is useful for both Intellisense and Documentation. We are using Sandcastle to produce the chm file. Sandcastle allows me to filter out internal and private elements. Unfortunately they are in the XML generated by csc.exe which means they show up in Intellisense. I don't see anyway to filter the output of csc. Can I use Sandcastle to filter the docs? How do other people do this?

      Tanks for your support
      Pat O
      Blog

      _ _ _
      /*\== /*\== /*\==
      <ooo> <ooo> <ooo>

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      Don't write any. Your classes should be small enough that you don't need to anyway. Just use regular comments.

      P 1 Reply Last reply
      0
      • P PIEBALDconsult

        Don't write any. Your classes should be small enough that you don't need to anyway. Just use regular comments.

        P Offline
        P Offline
        pdohara
        wrote on last edited by
        #3

        Are you suggesting that I do not put comments on internal/private methods? I appreciate that methods should be apparent and "self documenting", but this is no help unless you are reading the code. I find the answer that I should just read the code (instead of relying on documentation) is not very practical.

        Tanks for your support
        Pat O
        Blog

        _ _ _
        /*\== /*\== /*\==
        <ooo> <ooo> <ooo>

        P 1 Reply Last reply
        0
        • P pdohara

          Are you suggesting that I do not put comments on internal/private methods? I appreciate that methods should be apparent and "self documenting", but this is no help unless you are reading the code. I find the answer that I should just read the code (instead of relying on documentation) is not very practical.

          Tanks for your support
          Pat O
          Blog

          _ _ _
          /*\== /*\== /*\==
          <ooo> <ooo> <ooo>

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          That's why I added, "Just use regular comments."

          P 1 Reply Last reply
          0
          • P PIEBALDconsult

            That's why I added, "Just use regular comments."

            P Offline
            P Offline
            pdohara
            wrote on last edited by
            #5

            I guess I did not make myself clear. We have "internal" developers and "external" developers. That is to say we have a team that is working on the SDK and then there are the SDK customers. I want Intelliscense and popup help for the internal developers, but not for external ones. So is there a way I can remove the comments for internal and private, that I can use for one configuration of the solution "retail" and leave in for other configurations ("debug" and "release"). BTW, at this point I assume the answer is no.

            Tanks for your support
            Pat O
            Blog

            _ _ _
            /*\== /*\== /*\==
            <ooo> <ooo> <ooo>

            P 1 Reply Last reply
            0
            • P pdohara

              I guess I did not make myself clear. We have "internal" developers and "external" developers. That is to say we have a team that is working on the SDK and then there are the SDK customers. I want Intelliscense and popup help for the internal developers, but not for external ones. So is there a way I can remove the comments for internal and private, that I can use for one configuration of the solution "retail" and leave in for other configurations ("debug" and "release"). BTW, at this point I assume the answer is no.

              Tanks for your support
              Pat O
              Blog

              _ _ _
              /*\== /*\== /*\==
              <ooo> <ooo> <ooo>

              P Offline
              P Offline
              PIEBALDconsult
              wrote on last edited by
              #6

              You could write your own tool that would skip the internal and private ones. Oh, wait, intellisence won't show documentation for the parts they can't see anyway. I thought you were asking about the generated XML file.

              P 1 Reply Last reply
              0
              • P PIEBALDconsult

                You could write your own tool that would skip the internal and private ones. Oh, wait, intellisence won't show documentation for the parts they can't see anyway. I thought you were asking about the generated XML file.

                P Offline
                P Offline
                pdohara
                wrote on last edited by
                #7

                I was. Doesn't intelliscense use the XML?

                Tanks for your support
                Pat O
                Blog

                _ _ _
                /*\== /*\== /*\==
                <ooo> <ooo> <ooo>

                P 1 Reply Last reply
                0
                • P pdohara

                  I was. Doesn't intelliscense use the XML?

                  Tanks for your support
                  Pat O
                  Blog

                  _ _ _
                  /*\== /*\== /*\==
                  <ooo> <ooo> <ooo>

                  P Offline
                  P Offline
                  PIEBALDconsult
                  wrote on last edited by
                  #8

                  Not the (optional) XML file generated during a build. I wonder whether or not conditional compilation would help:

                  # if InternaldBuild
                  <summary>... </summary>

                  endif

                  internal void F () ...
                  
                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups