-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Libraries nuget packages contain XML docs next to runtime assemblies #31810
Comments
This was regressed with dotnet/corefx#32934 @AraHaan @danmosemsft This set DocumentationFile for all src projects: We use the value of this to determine if a src project should include docs: We still will prefer a centrally defined doc from our docs package, so we don't end up using the incomplete source-generated docs files. We need to either undo that property or change how we calculate whether or not to include docs. This change bloated most packages that have ref and src considerably. |
I personally like the docs to be in the ref and the lib dirs because then projects that depend on them sometimes copies them over to the published copy so then those who want to see what a library does can read them. Especially when their project does not have any website that hosts their documentations or does not even use the github wiki to document it either (or the wiki is incomplete because of lack of motivation) or control of syncing the xml doc comments to it. Maybe one day github will get smart enough that on c# repositories auto generate a documentation wiki page which auto updates based on the xml doc comments in their code on their repository (when set to do so as a setting). |
If/When we do this, we will have to make sure we consider the case where |
The behavior you describe is an artifact of the old MSBuild non-transitive references. This was done because otherwise you'd never see the assets from a transitive reference. With NuGet + PackageReference this shouldn't be an issue, since projects will always receive the transitive reference, and thus the XML from the package itself. @joperezr good point, and something we'd want to check when doing this work. I believe this was working correctly in 2.x when we had some similar concerns, but I could be wrong. |
Noticed this with System.DirectoryServices.Protocols:
Both the lib and runtimes xml's will never be used.
The text was updated successfully, but these errors were encountered: