Skip to content
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

Remove implicit reference to Maui Compatibility and template references #22203

Merged
merged 2 commits into from
May 16, 2024

Conversation

PureWeen
Copy link
Member

@PureWeen PureWeen commented May 3, 2024

Description of Change

For new users it's not advantageous (and can be confusing) to have the Maui Compatibility package referenced. Nothing from this package should be used by new projects.

TODO

What updates need to be made to the migration tool? Does it already set UseMauiCompat to true?

@PureWeen PureWeen requested review from mattleibow and Redth May 3, 2024 19:59
@samhouts samhouts added the area-templates Project templates, Item Templates for Blazor and MAUI label May 3, 2024
@PureWeen PureWeen requested a review from drasticactions May 3, 2024 20:57
@PureWeen PureWeen changed the title Remove implicit reference to Maui Compatibility Remove implicit reference to Maui Compatibility and template references May 3, 2024
@MitchBomcanhao
Copy link

UseMauiCompatibility completely breaks controls based on ContentView on Windows, so we already have to disable it.
see
#13739
#19779

davidortinau
davidortinau previously approved these changes May 13, 2024
Copy link
Contributor

@davidortinau davidortinau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I had tried this previously, the package was always referenced no matter what I did with UseMauiCompat. My expectation is that with these changes, unless the package is directly referenced or UseMauiCompat is explicitly true, then the package will not be included. If I'm reading it correctly, that seems to be the case. Correct?

@mattleibow
Copy link
Member

That is correct. After this PR, if you are not adding the package or setting the property, then the compat package should not be included.

@mattleibow mattleibow marked this pull request as ready for review May 14, 2024 18:43
@mattleibow mattleibow requested review from a team as code owners May 14, 2024 18:43
mattleibow
mattleibow previously approved these changes May 14, 2024
Copy link
Member

@Eilon Eilon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a new template in the house, maui-blazor-solution. Probably needs to be updated too!

@PureWeen
Copy link
Member Author

/rebase

@github-actions github-actions bot force-pushed the remove_explicit_compat_package branch from c4541fd to 479d8a6 Compare May 15, 2024 16:40
@Eilon
Copy link
Member

Eilon commented May 15, 2024

@PureWeen PureWeen dismissed stale reviews from mattleibow and davidortinau via 3fd5c0d May 15, 2024 19:23
@PureWeen PureWeen requested a review from Eilon May 15, 2024 19:23
@PureWeen PureWeen enabled auto-merge (squash) May 16, 2024 10:03
@PureWeen PureWeen merged commit 46cba56 into net9.0 May 16, 2024
49 checks passed
@PureWeen PureWeen deleted the remove_explicit_compat_package branch May 16, 2024 10:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-templates Project templates, Item Templates for Blazor and MAUI fixed-in-9.0.0-preview.5.24307.10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants