Prepare [AttachedBindableProperty<T>] and [BindableProperty] for Release
#3047
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of Change
In preparation for the release of
CommunityToolkit.Maui v14.0.0, this PR moves bothAttachedBindablePropertyAttributeSourceGeneratorandBindablePropertyAttributeSourceGeneratorfromCommunityToolkit.Maui.SourceGenerators.Internal.csprojtoCommunityToolkit.Maui.SourceGenerators.csproj.This PR also renames
CommunityToolkit.Maui.SourceGenerators.Internal.UnitTests.csprojtoCommunityToolkit.Maui.SourceGenerators.UnitTests.csproj.Both
[AttachedBindableProperty<T>]and[BindableProperty]will be released inCommunityToolkit.Maui v14.0.0with the[Experimental]attribute.PR Checklist
approved(bug) orChampioned(feature/proposal)mainat time of PRAdditional information
This PR also adds
<DisableTextColorToGenerator>true</DisableTextColorToGenerator>which provides the functionality to disableTextColorToGeneratorinside acsproj.I've added
<DisableTextColorToGenerator>true</DisableTextColorToGenerator>toCommunityToolit.Maui.csproj,CommunityToolkit.Maui.Camera.csprojandCommunityToolkit.Maui.MediaElement.csprojbecause theTextColorToGeneratoronly needs to run for projects that add the NuGet PackageCommunityToolkit.Maui; it does not need to generate any code inside the aforementioned projects.The
TextColorToSourceGeneratorhad to be disabled forCommunityToolkit.Maui.Camera.csprojandCommunityToolkit.Maui.MediaElement.csprojbecause it referencesCommunityToolkit.Maui.Corewhich these two projects do not.The
TextColorToSourceGeneratorhad to be disabled forCommunityToolkit.Maui.csprojbecauseCommunityToolkit.Maui.UnitTestsgeneratesTextColorTo()extension methods and the compiler failed to buildCommunityToolkit.Maui.UnitTestsdue to duplicateTextColorTo()methods generated by bothCommunityToolkit.MauiandCommunityToolkit.Maui.UnitTests.