Fix Circular Dependency issues for New Arch Apps#15747
Open
vineethkuttan wants to merge 12 commits intomainfrom
Open
Fix Circular Dependency issues for New Arch Apps#15747vineethkuttan wants to merge 12 commits intomainfrom
vineethkuttan wants to merge 12 commits intomainfrom
Conversation
Performance Test ResultsBranch: ✅ Passed147 scenario(s) across 14 suite(s) — no regressionsSectionList
FlatList
TouchableOpacity
ScrollView
TouchableHighlight
Pressable
Modal
Image
ActivityIndicator
Switch
Button
TextInput
View
Text
|
acoates-ms
reviewed
Mar 16, 2026
| <PropertyGroup Label="Globals"> | ||
| <CppWinRTOptimized>true</CppWinRTOptimized> | ||
| <!-- Prevent MSB4006 circular dependency in CppWinRT during parallel builds (https://github.com/microsoft/cppwinrt/issues/950) --> | ||
| <CppWinRTGenerateWindowsMetadata>false</CppWinRTGenerateWindowsMetadata> |
Contributor
There was a problem hiding this comment.
Does this prevent Apps from being able to define new winrt types using idls?
Contributor
Author
There was a problem hiding this comment.
New WinRT types can be defined, but publishing those types to the outside world is restricted.
But we need to define <CppWinRTGenerateWindowsMetadata> in vcxproj, true or false doesn't matter.
Setting it to true.
Contributor
Author
|
/azp run |
Contributor
|
Azure Pipelines successfully started running 2 pipeline(s). |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Fixing Circular Dependency issues for New Arch Apps
Type of Change
Why
Due to ongoing issues in microsoft/cppwinrt#950 , we added a temporary fix in #13338 to make the projects build with -m , i.e one concurrent process for building the RNW App, refer here
What
Inspired by this changes microsoft/winget-cli#5932 , I have defined CppWinRTGenerateWindowsMetadata to prevent the circular reference in calculating the value
Testing
Tested in playground
Changelog
Should this change be included in the release notes: yes
Circular dependency build issues for RNW Fabric App has been fixed
Microsoft Reviewers: Open in CodeFlow