Enable Built-in COM interop for ContentIsland sample#2100
Enable Built-in COM interop for ContentIsland sample#2100niels9001 merged 2 commits intomicrosoft:mainfrom
Conversation
Zakariathr22
left a comment
There was a problem hiding this comment.
Important
I’m not sure if this will impact the NAOT adoption in PR #2095, so it may need verification to ensure there are no runtime issues.
niels9001
left a comment
There was a problem hiding this comment.
Tested, works :)! Thanks!
|
@niels9001 I should mention that this will increase the size of the program, even in AOT mode it will add 10 ~ 30 MB. this is my DevWinUI gallery app with and without Built-in COM interop support: |
@marcelwgn I’m very interested in knowing your thoughts on this. |
|
That size increase is quite bad, a non working sample is worse though in my opinion. I think for now, we should enable it since the only other option really is only removing the samples requiring such interactivity. The latter is something we might revisit in the future. |
|
/azp run |


Description
Explicitly enables built-in COM interop in the project by setting true in the .csproj file.
This ensures that the
ContentIslandsample can load models without throwing aSystem.NotSupportedExceptionwhen trimming is enabled.Motivation and Context
ContentIslandsample #2074How Has This Been Tested?
Tested by running the
ContentIslandsample locally in bothReleaseandDebugmode.Screenshots (if appropriate):
None
Types of changes