[SG] Decorate generated types with [Generated]#30903
[SG] Decorate generated types with [Generated]#30903StephaneDelcroix merged 1 commit intonet10.0from
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds the [GeneratedCode] attribute to mark generated partial classes as generated code in XAML source generation. This ensures that 100% generated types (like XAML-only resource dictionaries) are properly decorated to exclude them from documentation generation and code analysis.
- Adds
[GeneratedCode]attribute to generated partial classes when a default constructor is being generated - Uses Microsoft.Maui.Controls.SourceGen as the tool name with version 1.0.0.0
|
/backport to 10.0.1xx-preview7 |
|
Started backporting to 10.0.1xx-preview7: https://github.com/dotnet/maui/actions/runs/16597440913 |
|
@jfversluis an error occurred while backporting to "10.0.1xx-preview7", please check the run log for details! The process '/usr/bin/git' failed with exit code 1 |
|
Started backporting to 10.0.1xx-preview7: https://github.com/dotnet/maui/actions/runs/16597440913 |
|
@jfversluis an error occurred while backporting to "10.0.1xx-preview7", please check the run log for details! The process '/usr/bin/git' failed with exit code 1 |
|
/backport to release/10.0.1xx-preview7 |
|
Started backporting to release/10.0.1xx-preview7: https://github.com/dotnet/maui/actions/runs/16597591472 |
Description of Change
some types are 100% generated (for xaml-only resourcedictionaries). They should cause documentation to be generated, so mark them as [Generated]
Issues Fixed