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

Add logic to gather respective WinMDs of dependent projection DLLs. #855

Merged
merged 3 commits into from
Jun 2, 2021

Conversation

manodasanW
Copy link
Member

We don't have an easy way of determine the WinMDs for the projection DLLs or determining which binaries are projection DLLs. But we do need the WinMDs to pass to CsWinRT and there is an option for developers of authoring components to pass them via a property. But to bring close to parity to the previous experience, we should also try to automate that. This change automates it for package references by gathering all the nuget packages in use based on the runtime DLLs and then uses that to gather any WinMDs in those packages. In case there is any issues with this logic, there is a property which allows it to be disabled. We probably need to look at doing something similar for project references when we address the WinMD leak issue.

Also did some cleanup and moved some targets for authoring scenarios in the main CsWinRT targets to the authoring targets.

Fixes #656

@manodasanW manodasanW requested review from Scottj1s and j0shuams May 28, 2021 15:04
Copy link
Member

@Scottj1s Scottj1s left a comment

Choose a reason for hiding this comment

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

nice!

@manodasanW manodasanW merged commit 3700e25 into master Jun 2, 2021
@manodasanW manodasanW deleted the manodasanw/winmddepends branch June 2, 2021 18:47
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.

Dependent WinMDs of authored component should be automatically detected
3 participants