Skip to content

Conversation

@jlaanstra
Copy link
Contributor

Fixes #1050

Copy link
Collaborator

@kennykerr kennykerr left a comment

Choose a reason for hiding this comment

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

Thanks!

@sylveon
Copy link
Contributor

sylveon commented Oct 27, 2021

I added that to avoid duplicating the evaluation, but it can't be MSBuild without surprises

@kennykerr
Copy link
Collaborator

@sylveon It was causing problems with some internal builds. 🤷‍♂️

@jlaanstra
Copy link
Contributor Author

I added that to avoid duplicating the evaluation, but it can't be MSBuild without surprises

The problem is that once the target has run, the _BuildingMidl item group can easily become stale if a later target adds items to the Midl item group as those won't be picked up by _BuildingMidl. That's exactly what happened in the internal project.

@jlaanstra
Copy link
Contributor Author

@sylveon if you have time could you make sure this change still works for your use case?

@sylveon
Copy link
Contributor

sylveon commented Oct 28, 2021

Yep, still works for me!

@jlaanstra
Copy link
Contributor Author

@kennykerr let's get this merged!

@kennykerr kennykerr merged commit eab5d4b into microsoft:master Oct 28, 2021
@jlaanstra jlaanstra deleted the user/jlaans/1050 branch October 28, 2021 22:45
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.

CppWinRTGetBuildingMidl is evaluated too early causing missing WinMD files

3 participants