Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9257837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:15:01+00:00 2026-06-18T12:15:01+00:00

When you compile your source code using csc.exe , you can use /doc option

  • 0

When you compile your source code using csc.exe, you can use /doc option to save your xml documentation comments that are in the source file to an external xml file.

What I want to know is why the compiler includes the xml comments of the non-public members of my code in that file. Since I already have the documentation in the source code, I don’t need anything that’s in the xml documentation file while working on that project.

And if I use the dll for another project, I can’t use the non-public members anyway. So why does it contain documentation for all the private and internal members?

I would also like to know if there is a way to prevent that.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T12:15:02+00:00Added an answer on June 18, 2026 at 12:15 pm

    I can understand internal members being documented – that way it may be easier to browse the documentation for code you’re writing within the same assembly. (And there’s always InternalsVisibleTo, of course.) For private members, I think it’s a bit harder to justify.

    If you use Sandcastle to generate offline documentation, you can ask it to generate a new XML file with only the public members – and only the summary parts, at that. I can’t remember offhand what it looks like in SHFB, but in our Noda Time project file, I believe this is the relevant section:

      <ComponentConfig id="IntelliSense Component" enabled="True">
        <component id="IntelliSense Component" 
                   type="SandcastleBuilder.Components.IntelliSenseComponent" 
                   assembly="{@SHFBFolder}SandcastleBuilder.Components.dll">
          <output includeNamespaces="false" namespacesFile="Namespaces" 
                  folder="{@OutputFolder}\..\PublicApi" />
        </component>
      </ComponentConfig>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using ef4 code first you can create and compile classes and dbcontext. What happens
I'm trying to compile IL code using bat file and C#. Here is a
Recently I downloaded Live555 server source code from their site. I tried to compile
Using Code::Blocks w/ mingw, and trying to use GLee for some OpenGL on windows.
Some C++ source code I wrote compiled and ran fine on Windows 7 using
I compile my C++ program to LLVM IR using the following command. clang++ -O4
I'm getting a compile errors, that I can't really fix. I need to create
I want to compile the data for reporting purpose, using php communicating with postgres,
so i'm using Git as my source control repo. At work, I do some
I am using MinGW GCC compiler on Windows 7. I am trying to compile

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.