-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make TextColorTo
Generated Classes for .NET MAUI Controls Internal
#791
Conversation
@loop8ack - I went ahead and started the PR based on our discussion: #756 (reply in thread) Do have time this week to add some additional Unit Tests to this PR? |
Your change would prevent the generated code for self-implemented controls from being public. For the self-implemented controls, the access modifier should match the control so that the generated code for public controls can also be used outside the assembly. I would instead change the hardcoded
I have some time this weekend and could write some general tests. |
Thanks @loop8ack!
Interesting idea! When you're playing around with the Unit Tests, try writing tests that break my current implementation, where all generated classes are
No worries at all! You'll be testing the generated code, not the source generator library. Check out the existing |
Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
TextColorTo
Generated Classes InternalTextColorTo
Generated Classes for .NET MAUI Controls Internal
Description of Change
This PR changes generated classes for .NET MAUI controls, i.e. code generated for
Microsoft.Maui.Controls.*
byTextColorTo
, frompublic
tointernal
.The bug in CommunityToolkit/Maui.Markup#158 is caused by two matching public classes being generated in both the .NET MAUI library (eg
net7.0-ios
) and the referenced class library (e.g.net7.0
).Linked Issues
PR Checklist
approved
(bug) orChampioned
(feature/proposal)main
at time of PR