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

Fix issue in WPF scenarios where our source generator was getting ran twice #1731

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

manodasanW
Copy link
Member

When the Windows SDK projection package and the CsWinRT package is referenced, the same source generator from both packages get included. But .NET has logic as part of ResolveAssemblyReferences to determine the newer one and only use that. But for some reason this logic wasn't getting triggered in WPF scenarios. Given this issue only occurs when the CsWinRT package is referenced, making use of our targets to ensure ResolveAssemblyReferences has ran by the time CoreCompile runs to ensure the deduplication has happened.

@manodasanW manodasanW merged commit 34d8d54 into master Sep 5, 2024
10 checks passed
@manodasanW manodasanW deleted the manodasanw/fixsourcegeneratorconflict branch September 5, 2024 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant