-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing global properties error in Dynamic platform resolution (#8222)
Context In graph projects, if project A (x86) references project B (AnyCPU), we use the same global properties dictionary in both cases. This means that project A will get Platform:AnyCPU as a global property. Platform should be the only property that changes, so anything that prevents the parent project from getting its global properties changed by dependent projects would unblock VS. Note that we cannot use one dictionary and change the property while building B in the above example, then revert the property because that would still affect B; anyone using the project graph object would be getting incorrect information. From a performance perspective, there should only be ~6-7 properties in the dictionary, so copying it should not be a major hit. Changes Made This change prevents the global properties dictionary from being passed directly if EnableDynamicPlatformResolution is true. Testing Unit test and possibly manual tests, though I didn't ask. Co-authored-by: Forgind <12969783+Forgind@users.noreply.github.com> Co-authored-by: Rainer Sigwald <raines@microsoft.com>
- Loading branch information
1 parent
e0f4434
commit 47a7121
Showing
2 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters