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

MAUI source generator interferes with other projects #26125

Open
miloush opened this issue Nov 26, 2024 · 4 comments
Open

MAUI source generator interferes with other projects #26125

miloush opened this issue Nov 26, 2024 · 4 comments
Assignees
Labels
s/needs-attention Issue has more information and needs another look

Comments

@miloush
Copy link

miloush commented Nov 26, 2024

It seems that when a MAUI library is referenced by a project, the MAUI source generator is run for that project. If the project happens to have XAML files, it interferes with the project's own code generation.

See dotnet/wpf#10113

Expected: do not include MAUI analyzers in a project that only references another MAUI project.

@jfversluis jfversluis added the s/needs-repro Attach a solution or code which reproduces the issue label Nov 26, 2024
@miloush
Copy link
Author

miloush commented Nov 26, 2024

repro in linked issue

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-repro Attach a solution or code which reproduces the issue labels Nov 26, 2024
@StephaneDelcroix
Copy link
Contributor

<EnableDefaultMauiItems>false</EnableDefaultMauiItems>

@StephaneDelcroix
Copy link
Contributor

do you have any proposition for this ?

@StephaneDelcroix StephaneDelcroix self-assigned this Nov 27, 2024
@miloush
Copy link
Author

miloush commented Nov 27, 2024

What is the mechanism that makes a project that references a MAUI library run the MAUI analyzers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s/needs-attention Issue has more information and needs another look
Projects
None yet
Development

No branches or pull requests

3 participants