CARVIEW |
Select Language
HTTP/2 200
date: Thu, 24 Jul 2025 07:46:44 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/microsoft/react-native-windows.git
etag: W/"9bd434eea6492ba9a2686637e01da98e"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=evlgcG0Rn%2FnFgWFmV4Zx0raH0Wjbj0K%2FidWX8Y%2F33plQQq%2Fj0Wr%2FY2DW854EQV0F5U%2FX8lg1lCX8Ao4iAYAakZRpZVNfoJnYkOwdiuv0J7qC7RKKawcltkyUhmr6vaJJSJhG3ajRFCBqeyr5L61Oia3go9yU49xYxuS9nyvjS5BL2afD58mnAdnfyBcm%2BIeUxmrtkcse7ZHxi%2FGYM%2FsBBibtWzHF5kOewcruHfstUQ9OOfbVh4e%2FgPBjB%2BuSYHHAHISE3EasrBMTn4a2MbFi%2FA%3D%3D--eZ9JNVZoY9Df7Mo5--eofsPhao%2BvjeSqWjNJlgUw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.12710322.1753343203; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 07:46:43 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 07:46:43 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: E8DC:12BD61:1612868:1A8C674:6881E4E3
Switch New Architecture templates to use prebuilt NuGets (#13338) · microsoft/react-native-windows@9ce78de · GitHub
Copy file name to clipboardExpand all lines: .ado/jobs/cli-init-windows.yml
Copy file name to clipboardExpand all lines: .ado/templates/react-native-init-windows.yml
Copy file name to clipboard
Copy file name to clipboard
Copy file name to clipboardExpand all lines: packages/@react-native-windows/cli/src/utils/msbuildtools.ts
Copy file name to clipboardExpand all lines: vnext/PropertySheets/External/Microsoft.ReactNative.Composition.Package.props
Copy file name to clipboardExpand all lines: vnext/PropertySheets/External/Microsoft.ReactNative.Composition.Package.targets
Copy file name to clipboardExpand all lines: vnext/PropertySheets/External/Microsoft.ReactNative.Cpp.PackageReferences.props
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit 9ce78de
authored
Switch New Architecture templates to use prebuilt NuGets (#13338)
## Description
This PR updates the `cpp-app` and `cpp-lib` new architecture templates to build against the pre-built `Microsoft.ReactNative` NuGet packages by default.
### Type of Change
- New feature (non-breaking change which adds functionality)
- Breaking change (fix or feature that would cause existing functionality to not work as expected)
- This change requires a documentation update
### Why
Building the `Microsoft.ReactNative` native code is very resource-intensive. Pre-building that code makes for much faster builds and greatly improved developer experience. This experience has been experimental and poorly support for Paper for some time now - for the new architecture projects we want using NuGets to be the primary experience from day one.
Resolves #12639
### What
The `cpp-app` and `cpp-lib` new architecture templates now set up projects to consume the ("-Fabric" versions) of the pre-built `Microsoft.ReactNative` NuGet packages by default.
The CI and PR builds have also been updated to make sure nugets for x64, x86, arm64 are built first and then consumed by the new project tests.
To support working on RNW itself, the new projects made using "devMode" (i.e. by yarn linking with your local RNW repo) will still build against the source of that local RNW repo rather than the nugets.
This PR also fixes the `--singleproc` flag for `run-windows`. Previously it didn't do anything on machines with high RAM, but now if you specify the flag it forces single processor builds as expected.
## Screenshots
Building x64 Release Paper (build RNW from source):

Building x64 Release Fabric (use RNW Nugets):

## Testing
Verified new projects build and run using the pre-built nugets.
## Changelog
Should this change be included in the release notes: _yes_
Switch New Architecture templates to use prebuilt NuGets1 parent 849d71f commit 9ce78deCopy full SHA for 9ce78de
File tree
Expand file treeCollapse file tree
21 files changed
+199
-25
lines changedFilter options
- .ado
- jobs
- templates
- change
- packages/@react-native-windows/cli/src/utils
- vnext
- PropertySheets/External
- Scripts
- templates
- cpp-app
- windows
- cpp-lib
- example
- windows
Expand file treeCollapse file tree
21 files changed
+199
-25
lines changed.ado/jobs/cli-init-windows.yml
Copy file name to clipboardExpand all lines: .ado/jobs/cli-init-windows.yml+36-9Lines changed: 36 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 |
| |
12 | 15 |
| |
13 | 16 |
| |
| |||
18 | 21 |
| |
19 | 22 |
| |
20 | 23 |
| |
| 24 | + | |
21 | 25 |
| |
22 | 26 |
| |
23 | 27 |
| |
24 | 28 |
| |
25 | 29 |
| |
| 30 | + | |
26 | 31 |
| |
27 | 32 |
| |
28 | 33 |
| |
29 | 34 |
| |
30 | 35 |
| |
| 36 | + | |
31 | 37 |
| |
32 | 38 |
| |
33 | 39 |
| |
34 | 40 |
| |
35 |
| - | |
| 41 | + | |
| 42 | + | |
36 | 43 |
| |
37 | 44 |
| |
38 | 45 |
| |
39 | 46 |
| |
40 |
| - | |
| 47 | + | |
| 48 | + | |
41 | 49 |
| |
42 | 50 |
| |
43 | 51 |
| |
44 | 52 |
| |
45 |
| - | |
| 53 | + | |
| 54 | + | |
46 | 55 |
| |
47 | 56 |
| |
48 | 57 |
| |
| |||
108 | 117 |
| |
109 | 118 |
| |
110 | 119 |
| |
| 120 | + | |
111 | 121 |
| |
112 | 122 |
| |
113 | 123 |
| |
114 | 124 |
| |
115 | 125 |
| |
116 | 126 |
| |
117 | 127 |
| |
| 128 | + | |
118 | 129 |
| |
119 | 130 |
| |
120 | 131 |
| |
121 | 132 |
| |
122 | 133 |
| |
| 134 | + | |
123 | 135 |
| |
124 | 136 |
| |
125 | 137 |
| |
126 | 138 |
| |
127 | 139 |
| |
| 140 | + | |
128 | 141 |
| |
129 | 142 |
| |
130 | 143 |
| |
131 | 144 |
| |
| 145 | + | |
132 | 146 |
| |
133 | 147 |
| |
134 | 148 |
| |
135 | 149 |
| |
136 | 150 |
| |
| 151 | + | |
137 | 152 |
| |
138 | 153 |
| |
139 | 154 |
| |
140 | 155 |
| |
141 | 156 |
| |
| 157 | + | |
142 | 158 |
| |
143 | 159 |
| |
144 | 160 |
| |
145 | 161 |
| |
146 |
| - | |
| 162 | + | |
| 163 | + | |
147 | 164 |
| |
148 | 165 |
| |
149 | 166 |
| |
150 | 167 |
| |
151 |
| - | |
| 168 | + | |
152 | 169 |
| |
153 | 170 |
| |
154 | 171 |
| |
155 | 172 |
| |
156 |
| - | |
| 173 | + | |
| 174 | + | |
157 | 175 |
| |
158 | 176 |
| |
159 | 177 |
| |
160 | 178 |
| |
161 |
| - | |
| 179 | + | |
| 180 | + | |
162 | 181 |
| |
163 | 182 |
| |
164 | 183 |
| |
165 | 184 |
| |
166 |
| - | |
| 185 | + | |
| 186 | + | |
167 | 187 |
| |
168 | 188 |
| |
169 | 189 |
| |
170 | 190 |
| |
171 |
| - | |
| 191 | + | |
| 192 | + | |
172 | 193 |
| |
173 | 194 |
| |
174 | 195 |
| |
| |||
274 | 295 |
| |
275 | 296 |
| |
276 | 297 |
| |
| 298 | + | |
277 | 299 |
| |
278 | 300 |
| |
279 | 301 |
| |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
280 | 306 |
| |
281 | 307 |
| |
282 | 308 |
| |
| |||
315 | 341 |
| |
316 | 342 |
| |
317 | 343 |
| |
| 344 | + |
+26-2Lines changed: 26 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 |
| |
34 | 38 |
| |
35 | 39 |
| |
36 | 40 |
| |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
37 | 45 |
| |
38 | 46 |
| |
39 |
| - | |
40 |
| - | |
| 47 | + | |
| 48 | + | |
41 | 49 |
| |
42 | 50 |
| |
43 | 51 |
| |
| |||
75 | 83 |
| |
76 | 84 |
| |
77 | 85 |
| |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
78 | 94 |
| |
79 | 95 |
| |
80 | 96 |
| |
81 | 97 |
| |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
82 | 106 |
| |
83 | 107 |
| |
84 | 108 |
| |
|
+7Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
37 | 43 |
| |
38 | 44 |
| |
39 | 45 |
| |
| |||
79 | 85 |
| |
80 | 86 |
| |
81 | 87 |
| |
| 88 | + |
.ado/templates/react-native-init-windows.yml
Copy file name to clipboardExpand all lines: .ado/templates/react-native-init-windows.yml+23Lines changed: 23 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 |
| |
26 | 29 |
| |
27 | 30 |
| |
| |||
41 | 44 |
| |
42 | 45 |
| |
43 | 46 |
| |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
44 | 58 |
| |
45 | 59 |
| |
46 | 60 |
| |
| |||
171 | 185 |
| |
172 | 186 |
| |
173 | 187 |
| |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
174 | 197 |
| |
175 | 198 |
| |
176 | 199 |
| |
|
change/@react-native-windows-cli-bd214a76-535b-4214-aa8d-8e67b0d17c96.json
Copy file name to clipboard+7Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + |
change/react-native-windows-ce719e54-ce74-4c70-a78a-f3c5a9576d73.json
Copy file name to clipboard+7Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + |
packages/@react-native-windows/cli/src/utils/msbuildtools.ts
Copy file name to clipboardExpand all lines: packages/@react-native-windows/cli/src/utils/msbuildtools.ts+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
119 | 119 |
| |
120 | 120 |
| |
121 | 121 |
| |
122 |
| - | |
| 122 | + | |
123 | 123 |
| |
124 | 124 |
| |
125 | 125 |
| |
|
vnext/PropertySheets/External/Microsoft.ReactNative.Composition.Package.props
Copy file name to clipboardExpand all lines: vnext/PropertySheets/External/Microsoft.ReactNative.Composition.Package.props+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| 14 | + | |
14 | 15 |
|
vnext/PropertySheets/External/Microsoft.ReactNative.Composition.Package.targets
Copy file name to clipboardExpand all lines: vnext/PropertySheets/External/Microsoft.ReactNative.Composition.Package.targets+4Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 |
| |
18 | 22 |
|
vnext/PropertySheets/External/Microsoft.ReactNative.Cpp.PackageReferences.props
Copy file name to clipboardExpand all lines: vnext/PropertySheets/External/Microsoft.ReactNative.Cpp.PackageReferences.props+14-4Lines changed: 14 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
9 |
| - | |
10 |
| - | |
11 |
| - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
12 | 22 |
|
You can’t perform that action at this time.
0 commit comments