CARVIEW |
Select Language
HTTP/2 200
date: Thu, 24 Jul 2025 06:56:59 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/"7312ca2a9e9f1a5deed47aae70400565"
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=6qZvqkVxXe5clSaEU%2FjEqUTO%2BWweVB8PbAS9tHDvmIymGzc2fXGT2j3DnBrGFHsHKppBXpirD7j2sJapTDzTqOkbBOCWxIWoSmCkk1EO7kv21CLtfHUpDNxvLLpVQNQxayQG2FBysIdaZ50dYL6rztlkT3WGWS49JmYau7ly4AJ5sqCEDOF90EJs6j15VIPx7xtaRk3SQuSvbUweZ2lFnMbx2n6uuepQB9CEBGfEzFQnO30eheryo2JYx0wo9w6W1kUyTN6AnFp8QdmTMQFrXg%3D%3D--CFVDXdU9XHS7yl79--wVgPNcT1sSI4MzqfDk5oQQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1759032352.1753340218; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 06:56:58 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 06:56:58 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: C9A6:2335D5:73319:7FC39:6881D93A
[0.76] Add RnwNewArch property and RNW_NEW_ARCH constants when buildi… · microsoft/react-native-windows@28e050f · GitHub
Dismiss banner
Copy file name to clipboardExpand all lines: .ado/jobs/cli-init-windows.yml
Copy file name to clipboardExpand all lines: .ado/templates/enable-fabric-experimental-feature.yml
Copy file name to clipboardExpand all lines: .ado/templates/msbuild-sln.yml
Copy file name to clipboardExpand all lines: .ado/templates/prepare-js-env.yml
Copy file name to clipboard
Copy file name to clipboard
Copy file name to clipboard
Copy file name to clipboardExpand all lines: packages/@react-native-windows/automation-channel/package.json
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit 28e050f
authored
[0.76] Add RnwNewArch property and RNW_NEW_ARCH constants when building projects for the new architecture (#14096)
* [0.76] Add RnwNewArch property and RNW_NEW_ARCH constants when building projects for the new architecture
THis PR backports #14042 to 0.76.
## Description
This PR adds a `RnwNewArch` MSBuild property and `RNW_NEW_ARCH` build-time constant / pre-processor directive for use by external (module) devs. This PR also updates `@react-native-windows/codegen` to use the directive when appropriate, and also applies those changes to `sample-custom-component`.
The expectation is that external devs now use these new properties and directives instead of the previously exposed `UseFabric`, `UseHermes` and/or `UseWinUI3` props. All logic expecting external developers to manually set those props has been removed and replaced with more robust checking that keys off `RnwNewArch` and throws warnings or errors if the other props aren't set correctly.
In addition, this PR adds further checks to make sure external projects load the WindowsSDK props sheet, followed by the appropriate RNW props and then the RNW targets. Failure to load these import properly would always risk putting the project in a broken state, now we at least tell people what they're missing.
Note: Old arch devs will still be able to toggle `UseHermes`.
### Type of Change
- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)
- This change requires a documentation update
### Why
We don't want end-users to have access to conditionally build their code for the new or old architectures, without having to use/replicate the current complicated un-scoped directives we use internally.
Closes #13929
### What
See above.
## Screenshots
N/A
## Testing
Verified the flag exists and builds for the sample-custom-component. Also verified that new projects build properly.
## Changelog
Should this change be included in the release notes: _yes_
Add RnwNewArch property and RNW_NEW_ARCH constants when building projects for the new architecture1 parent 2bb47d5 commit 28e050fCopy full SHA for 28e050f
File tree
Expand file treeCollapse file tree
72 files changed
+654
-184
lines changedFilter options
- .ado
- jobs
- templates
- change
- packages
- @react-native-windows
- automation-channel
- windows
- AutomationChannel
- codegen/src/generators
- e2e-test-app-fabric/windows
- RNTesterApp-Fabric.Package
- RNTesterApp-Fabric
- e2e-test-app/windows/RNTesterApp
- playground/windows
- playground-composition
- playground
- sample-app-fabric/windows
- SampleAppFabric
- sample-custom-component
- windows
- SampleCustomComponent
- codegen
- react/components/SampleCustomComponent
- vnext
- Desktop.ABITests
- Desktop.IntegrationTests
- Desktop
- Microsoft.ReactNative
- PropertySheets
- External
- Scripts
- templates
- cpp-app/windows
- MyApp
- cpp-lib/windows
- MyLib
- template
- shared-app/proj
- shared-lib/proj
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
72 files changed
+654
-184
lines changed.ado/jobs/cli-init-windows.yml
Copy file name to clipboardExpand all lines: .ado/jobs/cli-init-windows.yml-6Lines changed: 0 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
403 | 403 |
| |
404 | 404 |
| |
405 | 405 |
| |
406 |
| - | |
407 |
| - | |
408 |
| - | |
409 |
| - | |
410 |
| - | |
411 |
| - | |
412 | 406 |
| |
413 | 407 |
| |
414 | 408 |
| |
|
+2Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
183 | 183 |
| |
184 | 184 |
| |
185 | 185 |
| |
| 186 | + | |
| 187 | + | |
186 | 188 |
| |
187 | 189 |
| |
188 | 190 |
| |
|
-3Lines changed: 0 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
190 | 190 |
| |
191 | 191 |
| |
192 | 192 |
| |
193 |
| - | |
194 |
| - | |
195 |
| - | |
196 | 193 |
| |
197 | 194 |
| |
198 | 195 |
| |
|
.ado/templates/enable-fabric-experimental-feature.yml
Copy file name to clipboardExpand all lines: .ado/templates/enable-fabric-experimental-feature.yml+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
| 8 | + | |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
|
.ado/templates/msbuild-sln.yml
Copy file name to clipboardExpand all lines: .ado/templates/msbuild-sln.yml+2-1Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| 18 | + | |
18 | 19 |
| |
19 | 20 |
| |
20 | 21 |
| |
| |||
36 | 37 |
| |
37 | 38 |
| |
38 | 39 |
| |
39 |
| - | |
| 40 | + | |
40 | 41 |
| |
41 | 42 |
| |
42 | 43 |
| |
|
.ado/templates/prepare-js-env.yml
Copy file name to clipboardExpand all lines: .ado/templates/prepare-js-env.yml+4Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 |
| |
17 | 21 |
| |
18 | 22 |
| |
|
change/@react-native-windows-automation-channel-4c7447b5-805b-4261-a652-820c2d3ed0cc.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-codegen-386a49a7-d732-4d58-b692-37841cecd8b9.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-44e5d751-697d-41eb-806c-037f525ef1de.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/automation-channel/package.json
Copy file name to clipboardExpand all lines: packages/@react-native-windows/automation-channel/package.json+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
| 25 | + | |
25 | 26 |
| |
26 | 27 |
| |
27 | 28 |
| |
|
You can’t perform that action at this time.
0 commit comments