Revert "Remove InternalsVisibleTo attributes for .NET MAUI Community …#34047
Conversation
|
Hey there @@dartasen! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
There was a problem hiding this comment.
Pull request overview
This PR reverts the earlier removal of InternalsVisibleTo declarations for the .NET MAUI Community Toolkit, restoring toolkit access to MAUI internals to avoid breakages/regressions for toolkit consumers (notably in the .NET 10 preview templates and MAUI 10.0.40 scenarios).
Changes:
- Restores
InternalsVisibleToentries forCommunityToolkit.Maui*assemblies in Essentials, Core, Controls Core, and Controls Xaml. - Re-adds Toolkit-related visibility for
CommunityToolkit.Maui.Embeddingwhere it previously existed (Controls assemblies).
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/Essentials/src/AssemblyInfo/AssemblyInfo.shared.cs | Re-adds Toolkit InternalsVisibleTo declarations for Essentials internals. |
| src/Core/src/Properties/AssemblyInfo.cs | Re-adds Toolkit InternalsVisibleTo declarations for Core internals. |
| src/Controls/src/Xaml/Properties/AssemblyInfo.cs | Re-adds Toolkit InternalsVisibleTo declarations for Controls.Xaml internals (including Embedding). |
| src/Controls/src/Core/Properties/AssemblyInfo.cs | Re-adds Toolkit InternalsVisibleTo declarations for Controls.Core internals (including Embedding). |
…Toolkit (dotnet#33442)" This reverts commit 8e96657.
56883c4 to
1cf2d27
Compare
|
@dartasen have you validated that these nugets fix you? |
|
@PureWeen Installed 10.0.50-ci.pr34047.26113.37 on a local feed, and tested on Community Toolkit sample to confirm that the toolkit can compile again and works with the revert. And also tested on my production app
|
|
/backport to release/10.0.1xx-sr4 |
|
Started backporting to |
Added comprehensive documentation explaining: - Purpose: Catch regressions breaking third-party package compatibility - Pattern: Similar to SampleTests.cs - Context: Reference to PR #34047 - Ecosystem impact: Ensures MAUI build system remains compatible with community packages Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
|
/azp run maui-pr-uitests, maui-pr-devicetests |
|
Azure Pipelines successfully started running 2 pipeline(s). |

Description of Change
This reverts commit 8e96657. (from #33442)
Context : #29321
This is still not true as per the time we're discussing this, so there's no good reason to introduce those changes (from #33442) in a service release, as this is a massive breaking change. Making the version unusable for everyone using the toolkit.
Not to mention that 10.0.40 has some important bug fixes related to different crashes, which makes this situation quite annoying
Issues Fixed
Fixes #34035
Fixes #34034
Fixes #34048
Toolkit issues related
CommunityToolkit/Maui#3089
CommunityToolkit/Maui#3092