Skip to content

Don't emit default ctor for non activatable types#1817

Merged
manodasanW merged 5 commits into
masterfrom
user/sergiopedri/fix-non-activatable-types
Oct 11, 2024
Merged

Don't emit default ctor for non activatable types#1817
manodasanW merged 5 commits into
masterfrom
user/sergiopedri/fix-non-activatable-types

Conversation

@Sergio0694
Copy link
Copy Markdown
Member

This PR fixes the .winmd generation logic to avoid the default constructor for types that do have some non public constructor that takes any parameters. This bug is blocking the migration of one of our WinRT component projects in the Microsoft Store.

@Sergio0694 Sergio0694 added bug Something isn't working authoring Related to authoring feature work labels Oct 10, 2024
@Sergio0694 Sergio0694 requested a review from manodasanW October 10, 2024 01:08
@Sergio0694
Copy link
Copy Markdown
Member Author

Checked the .winmd manually, looks just fine:

image

Comment thread src/Tests/AuthoringTest/Program.cs
@Sergio0694 Sergio0694 force-pushed the user/sergiopedri/fix-non-activatable-types branch 2 times, most recently from 962bf12 to e64282f Compare October 10, 2024 19:48
@Sergio0694 Sergio0694 force-pushed the user/sergiopedri/fix-non-activatable-types branch from e64282f to fbdcb9f Compare October 10, 2024 22:20
@Sergio0694 Sergio0694 force-pushed the user/sergiopedri/fix-non-activatable-types branch from fbdcb9f to 67832b5 Compare October 10, 2024 23:51
@manodasanW manodasanW merged commit 8482124 into master Oct 11, 2024
@manodasanW manodasanW deleted the user/sergiopedri/fix-non-activatable-types branch October 11, 2024 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

authoring Related to authoring feature work bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants