Maui icon indicating copy to clipboard operation
Maui copied to clipboard

♻ Ensure no references to Xamarin.CommunityTookit in Maui app that uses MCT

Open pictos opened this issue 2 years ago • 3 comments

Based on this https://github.com/dotnet/maui/pull/1816

We want to make sure that users don't have both packages added to the project.

pictos avatar Aug 20 '21 03:08 pictos

Because we use .NET MAUI I suppose we don't need it. Because Xamarin.Community Toolkit uses Xamarin.

VladislavAntonyuk avatar Apr 21 '22 06:04 VladislavAntonyuk

@VladislavAntonyuk, the idea is to make sure that users that migrate their apps to Maui, don't forget to remove the reference. This also extends to XCT.compat. I'll there's a msbuild that can do that or we can use some analyzer, maybe inside our source generator?

pictos avatar Apr 26 '22 00:04 pictos

Can the Maui analyzer do that for us? As XCT uses XF, msbuild should return error. as for the MauiCompat, we should not exclude it right now, because it contains features like CameraView and MediaElement which are not available in MCT

VladislavAntonyuk avatar Apr 26 '22 06:04 VladislavAntonyuk