[WIP] [DRAFT] Implement New Architecture C# template cs-app
#15013
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
This PR adds a new New Architecture C# app template, named
cs-app
, which attempts to parallel the functionality with thecpp-app
template.This PR is currently a proof-of-concept and should not be checked in yet. It's just a starting point and comes with many caveats:
Steps for making and testing a new app:
yarn build
to build JS changescreaternwapp.cmd /linkrnw /t cs-app NewApp
)Working
yarn start
to start metroDebug x64
(should default to the*.Package
project)Not Working
Release
in VS 2022 gives build errors, as it suddenly can't find theMicrosoft.ReactNative
typesrun-windows
) does not work, giving an error about a missing RuntimeIdentifier (the CLI calls regularmsbuild.exe
on the solution, notdotnet
nordotnet msbuild
)autolink-windows
) does not work[ReactModule]
attributes, etc.)Type of Change
Why
Some developers want to build native code in C# rather than C++.
Resolves #14349
What
Created a new
cs-app
template using the New Arch.Screenshots
Testing
Verified a new app made with the template builds and launches.
Changelog
Should this change be included in the release notes: yes
Created a New Architecture C# template
cs-app