Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The existing metadata reader is the last holdover from the old
build
macro and the switch to pre-generated bindings. It provided a static type reader that could be shared by multiple invocations of the various code generation macros but was rather difficult to use in a more traditional procedural model since you couldn't give it an explicit set of winmd files or control the lifetime of the metadata reader. Unfortunately, the static nature of the metadata had a rather viral effect on dependencies which took me quite a lot of work to untangle.The new metadata reader can now be created and dropped as needed and given an explicit set of winmd files to parse. This also ends up being a lot faster. The port still has a few rough edges, but I'd like to get this in and deal with the stragglers in upcoming PRs as this change has been in the pipeline for long enough. Feel free to comment and I'll address feedback in subsequent PRs.
Fixes #1406