Skip to content
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

Enable GenerateDocumentationFile #6000

Merged
merged 4 commits into from
Sep 9, 2024
Merged

Conversation

jgonz120
Copy link
Contributor

@jgonz120 jgonz120 commented Aug 29, 2024

Bug

Fixes: https://github.com/NuGet/Client.Engineering/issues/2845

Description

In order to enforce certain style rules we need to enable GenerateDocumentationFile for all projects. This is a known issue, dotnet/roslyn#41640. The code we had for enabling GenerateDocumentationFile was not working because the value was being set by C# template. This now enables GenerateDocumentationFile for all projects. It also sets "WarningsNotAsErrors" for XML style errors for projects which are not shipped. CoPilot was used to generate documentation for some classes.

This also fixes errors that come up from enabling GenerateDocumentationFile. For using statements that need to be behind a conditional compilation, I grouped them together and placed them after the other using statements.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@jgonz120 jgonz120 requested a review from a team as a code owner August 29, 2024 18:34
zivkan
zivkan previously approved these changes Sep 4, 2024
build/common.project.props Outdated Show resolved Hide resolved
zivkan
zivkan previously approved these changes Sep 6, 2024
Co-authored-by: Andy Zivkovic <zivkan@users.noreply.github.com>
@jgonz120 jgonz120 merged commit c8dccb7 into dev Sep 9, 2024
28 checks passed
@jgonz120 jgonz120 deleted the dev-jgonz120-EnableDocumentGeneration branch September 9, 2024 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants