Skip to content

Commit 1adf98d

Browse files
authored
Bump Microsoft.Windows.CppWinRT to 2.0.230706.1 (#12798)
## Description This PR updates RNW to default version of `Microsoft.Windows.CppWinRT` to `2.0.230706.1`, the same version used by the VS 2022's WinAppSDK new app template. This PR also makes sure that we use the 64bit toolset by default, because CppWinRT projectd require lots of resources to build, and compiling some configurations with the new version (namely for us, ARM64 new arch) requires more RAM than the 32-bit tools (compiler and linker) can access. ### Type of Change - Bug fix (non-breaking change which fixes an issue) ### Why We haven't update CppWinRT in several years, and as we build towards the new architecture on top of WinAppSDK we don't want to be using an outdated configuration. ### What See above. ## Screenshots N/A ## Testing N/A _Optional_: Describe the tests that you ran locally to verify your changes. ## Changelog Should this change be included in the release notes: _yes_ Projects now depend on Microsoft.Windows.CppWinRT >= 2.0.230706.1
1 parent e644722 commit 1adf98d

File tree

33 files changed

+90
-90
lines changed

33 files changed

+90
-90
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "Bump Microsoft.Windows.CppWinRT to 2.0.230706.1",
4+
"packageName": "@react-native-windows/automation-channel",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "prerelease",
3+
"comment": "Bump Microsoft.Windows.CppWinRT to 2.0.230706.1",
4+
"packageName": "react-native-windows",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Microsoft.Windows.CppWinRT" version="2.0.210312.4" targetFramework="native" />
3+
<package id="Microsoft.Windows.CppWinRT" version="2.0.230706.1" targetFramework="native" />
44
</packages>

packages/@react-native-windows/automation-channel/windows/AutomationChannel/packages.lock.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
},
1414
"Microsoft.Windows.CppWinRT": {
1515
"type": "Direct",
16-
"requested": "[2.0.211028.7, )",
17-
"resolved": "2.0.211028.7",
18-
"contentHash": "JBGI0c3WLoU6aYJRy9Qo0MLDQfObEp+d4nrhR95iyzf7+HOgjRunHDp/6eGFREd7xq3OI1mll9ecJrMfzBvlyg=="
16+
"requested": "[2.0.230706.1, )",
17+
"resolved": "2.0.230706.1",
18+
"contentHash": "l0D7oCw/5X+xIKHqZTi62TtV+1qeSz7KVluNFdrJ9hXsst4ghvqQ/Yhura7JqRdZWBXAuDS0G0KwALptdoxweQ=="
1919
},
2020
"boost": {
2121
"type": "Transitive",

packages/e2e-test-app-fabric/windows/RNTesterApp-Fabric/packages.lock.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
},
2323
"Microsoft.Windows.CppWinRT": {
2424
"type": "Direct",
25-
"requested": "[2.0.211028.7, )",
26-
"resolved": "2.0.211028.7",
27-
"contentHash": "JBGI0c3WLoU6aYJRy9Qo0MLDQfObEp+d4nrhR95iyzf7+HOgjRunHDp/6eGFREd7xq3OI1mll9ecJrMfzBvlyg=="
25+
"requested": "[2.0.230706.1, )",
26+
"resolved": "2.0.230706.1",
27+
"contentHash": "l0D7oCw/5X+xIKHqZTi62TtV+1qeSz7KVluNFdrJ9hXsst4ghvqQ/Yhura7JqRdZWBXAuDS0G0KwALptdoxweQ=="
2828
},
2929
"Microsoft.WindowsAppSDK": {
3030
"type": "Direct",
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="Microsoft.UI.Xaml" version="2.8.0" targetFramework="native"/>
4-
<package id="Microsoft.Windows.CppWinRT" version="2.0.211028.7" targetFramework="native"/>
4+
<!-- This version of CppWinRT is tied to @react-native-picker/picker -->
5+
<package id="Microsoft.Windows.CppWinRT" version="2.0.210312.4" targetFramework="native"/>
56
</packages>

packages/e2e-test-app/windows/RNTesterApp/packages.lock.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"Microsoft.NETCore.Platforms": {
7070
"type": "Transitive",
7171
"resolved": "2.1.0",
72-
"contentHash": "GmkKfoyerqmsHMn7OZj0AKpcBabD+GaafqphvX2Mw406IwiJRy1pKcKqdCfKJfYmkRyJ6+e+RaUylgdJoDa1jQ=="
72+
"contentHash": "ok+RPAtESz/9MUXeIEz6Lv5XAGQsaNmEYXMsgVALj4D7kqC8gveKWXWXbufLySR2fWrwZf8smyN5RmHu0e4BHA=="
7373
},
7474
"Microsoft.SourceLink.Common": {
7575
"type": "Transitive",
@@ -93,7 +93,7 @@
9393
"NETStandard.Library": {
9494
"type": "Transitive",
9595
"resolved": "2.0.3",
96-
"contentHash": "548M6mnBSJWxsIlkQHfbzoYxpiYFXZZSL00p4GHYv8PkiqFBnnT68mW5mGEsA/ch9fDO9GkPgkFQpWiXZN7mAQ==",
96+
"contentHash": "st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==",
9797
"dependencies": {
9898
"Microsoft.NETCore.Platforms": "1.1.0"
9999
}

packages/integration-test-app/windows/InteropTestModuleCS/packages.lock.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"Microsoft.NETCore.Platforms": {
5454
"type": "Transitive",
5555
"resolved": "2.1.0",
56-
"contentHash": "GmkKfoyerqmsHMn7OZj0AKpcBabD+GaafqphvX2Mw406IwiJRy1pKcKqdCfKJfYmkRyJ6+e+RaUylgdJoDa1jQ=="
56+
"contentHash": "ok+RPAtESz/9MUXeIEz6Lv5XAGQsaNmEYXMsgVALj4D7kqC8gveKWXWXbufLySR2fWrwZf8smyN5RmHu0e4BHA=="
5757
},
5858
"Microsoft.SourceLink.Common": {
5959
"type": "Transitive",
@@ -85,7 +85,7 @@
8585
"NETStandard.Library": {
8686
"type": "Transitive",
8787
"resolved": "2.0.3",
88-
"contentHash": "548M6mnBSJWxsIlkQHfbzoYxpiYFXZZSL00p4GHYv8PkiqFBnnT68mW5mGEsA/ch9fDO9GkPgkFQpWiXZN7mAQ==",
88+
"contentHash": "st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==",
8989
"dependencies": {
9090
"Microsoft.NETCore.Platforms": "1.1.0"
9191
}

packages/integration-test-app/windows/integrationtest/TestHostHarness.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ winrt::fire_and_forget TestHostHarness::TimeoutOnInactivity(winrt::weak_ref<Test
167167
winrt::apartment_context harnessContext;
168168
auto weakThis = get_weak();
169169

170-
co_await 20s;
170+
co_await winrt::operator co_await(20s);
171171
co_await harnessContext;
172172

173173
if (auto strongTransaction = transaction.get()) {

packages/integration-test-app/windows/integrationtest/packages.lock.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
},
2020
"Microsoft.Windows.CppWinRT": {
2121
"type": "Direct",
22-
"requested": "[2.0.211028.7, )",
23-
"resolved": "2.0.211028.7",
24-
"contentHash": "JBGI0c3WLoU6aYJRy9Qo0MLDQfObEp+d4nrhR95iyzf7+HOgjRunHDp/6eGFREd7xq3OI1mll9ecJrMfzBvlyg=="
22+
"requested": "[2.0.230706.1, )",
23+
"resolved": "2.0.230706.1",
24+
"contentHash": "l0D7oCw/5X+xIKHqZTi62TtV+1qeSz7KVluNFdrJ9hXsst4ghvqQ/Yhura7JqRdZWBXAuDS0G0KwALptdoxweQ=="
2525
},
2626
"boost": {
2727
"type": "Transitive",

0 commit comments

Comments
 (0)