Skip to content

fix(GlobalStaticResources): add an exclude xml doc tag to the generated type definition - #21679

Merged
MartinZikmund merged 8 commits into
unoplatform:masterfrom
DevTKSS:Add-attribute-for-docs-generation-GlobalStaticResources
Jan 10, 2026
Merged

MartinZikmund merged 8 commits into
unoplatform:masterfrom
DevTKSS:Add-attribute-for-docs-generation-GlobalStaticResources

Conversation

@DevTKSS

@DevTKSS DevTKSS commented Oct 25, 2025 •

Copy link
Copy Markdown
Contributor

GitHub Issue: closes #18616

PR Type:

  • 🐞 Bugfix

What is the current behavior? 🤔

the public accessor level of the GlobalStaticResources class is resulting in publication of this generated type

What is the new behavior? 🚀

Refering to the docfx documentation:

The <exclude /> documentation comment excludes the type or member on a per API basis using C# documentation comment

the added tag should generally already work for excluding this type from the api docs

Also adding the EditorBrowsable Attribute, for the case that someone might not use docfx then another docs creation tool that might not consider the exclude tag, the attribute should serve as redundant backup

PR Checklist ✅

Please check if your PR fulfills the following requirements:

Other information ℹ️

Copilot AI review requested due to automatic review settings October 25, 2025 13:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses issue #18616 by preventing the auto-generated GlobalStaticResources class from appearing in API documentation. The fix adds an XML documentation <exclude /> tag and an EditorBrowsable attribute to the generated type definition to ensure it's hidden from documentation tools and IDE intellisense.

Key Changes

  • Added <exclude /> XML doc comment to suppress the type from DocFX-generated API documentation
  • Added EditorBrowsable(EditorBrowsableState.Never) attribute as a fallback for non-DocFX documentation tools

@github-actions github-actions Bot added the area/code-generation Categorizes an issue or PR as relevant to code generation label Oct 25, 2025
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

@DevTKSS

DevTKSS commented Oct 26, 2025

Copy link
Copy Markdown
Contributor Author

@MartinZikmund 🤔 if I read the log right, its looking for the files beeing produced, but all of them are listed in the end just not maybe in the order it seems to expect them?
I just implemented the points from the issue report at the position Jerome linked.

Is there something missing that needs to be done more?

I included the type for now in my filterConfig.yml for my docfx build but would be cool if this wouldn't be required in the future 😁

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 182840 has failed on Uno.UI - CI.

for case of some docs creation tool except from docfx is used, that does not consider the exclude tag, this should do the trick.
@MartinZikmund
MartinZikmund force-pushed the Add-attribute-for-docs-generation-GlobalStaticResources branch from 91a4293 to 2df5bc3 Compare January 9, 2026 16:12
Copilot AI review requested due to automatic review settings January 9, 2026 16:12
Copilot AI added 2 commits January 9, 2026 17:13
…cResources class

Co-authored-by: MartinZikmund <[email protected]>

# Conflicts:
#	src/SourceGenerators/Uno.UI.SourceGenerators/XamlGenerator/XamlCodeGeneration.cs
Co-authored-by: MartinZikmund <[email protected]>

# Conflicts:
#	src/SourceGenerators/Uno.UI.SourceGenerators/XamlGenerator/XamlCodeGeneration.cs
@CLAassistant

CLAassistant commented Jan 9, 2026 •

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
2 out of 3 committers have signed the CLA.

✅ MartinZikmund
✅ DevTKSS
❌ Copilot
You have signed the CLA already but the status is still pending? Let us recheck it.

@MartinZikmund
MartinZikmund force-pushed the Add-attribute-for-docs-generation-GlobalStaticResources branch from 3f4932a to af89841 Compare January 9, 2026 16:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 190689 has failed on Uno.UI - CI.

Copilot AI review requested due to automatic review settings January 10, 2026 13:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 75 changed files in this pull request and generated no new comments.

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

@MartinZikmund
MartinZikmund merged commit 854e456 into unoplatform:master Jan 10, 2026
58 of 59 checks passed
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area/code-generation Categorizes an issue or PR as relevant to code generation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Annotate generated GlobalStaticResources class

6 participants