Skip to content

Remove [WindowsRuntimeClassName] attribute from projected runtime class types#2353

Merged
Sergio0694 merged 1 commit intostaging/3.0from
dev/remove-classname-attr-from-runtime-classes
Mar 23, 2026
Merged

Remove [WindowsRuntimeClassName] attribute from projected runtime class types#2353
Sergio0694 merged 1 commit intostaging/3.0from
dev/remove-classname-attr-from-runtime-classes

Conversation

@Sergio0694
Copy link
Member

This removes the [WindowsRuntimeClassName]\ attribute from being emitted on projected runtime class types in both reference assemblies and projection implementation assemblies.

Changes

  • Removed the \write_class_winrt_classname_attribute\ function from \code_writers.h\
  • Removed its call site in the \write_class\ function and adjusted the format string accordingly

Note: \write_value_type_winrt_classname_attribute\ (used for structs/enums with \IReference\ class names) is unchanged, as those are value types rather than runtime classes.

Remove the write_class_winrt_classname_attribute function and its call site
in write_class, so that [WindowsRuntimeClassName] is no longer emitted over
projected runtime class types in either reference or implementation assemblies.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Sergio0694 Sergio0694 requested a review from manodasanW March 19, 2026 22:19
@Sergio0694 Sergio0694 merged commit d285813 into staging/3.0 Mar 23, 2026
11 checks passed
@Sergio0694 Sergio0694 deleted the dev/remove-classname-attr-from-runtime-classes branch March 23, 2026 21:41
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.

2 participants