Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new .NET projection for Microsoft.ReactNative #13913

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .ado/jobs/cli-init-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ parameters:
platform: x64
additionalRunArguments: --no-autolink
useNuGet: true
publishNuGet: true
- Name: FabricX86Debug
template: cpp-app
configuration: Debug
Expand Down Expand Up @@ -118,6 +119,7 @@ parameters:
platform: x64
additionalRunArguments: --no-autolink
useNuGet: true
publishNuGet: true
- Name: PaperX64ReleaseCpp
template: old/uwp-cpp-app
configuration: Release
Expand All @@ -137,6 +139,7 @@ parameters:
platform: x64
additionalRunArguments: --no-autolink
useNuGet: true
publishNuGet: true
- Name: FabricX86Debug
template: cpp-app
configuration: Debug
Expand All @@ -148,6 +151,7 @@ parameters:
configuration: Release
platform: x86
useNuGet: true
publishNuGet: true
- Name: FabricArm64Debug
template: cpp-app
configuration: Debug
Expand All @@ -160,6 +164,7 @@ parameters:
platform: ARM64
additionalRunArguments: --no-autolink --no-deploy
useNuGet: true
publishNuGet: true
- Name: FabricLibX64Debug
template: cpp-lib
configuration: Debug
Expand Down
6 changes: 2 additions & 4 deletions .ado/jobs/universal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,11 @@

- template: ../templates/apply-published-version-vars.yml

- ${{ if eq(matrix.UseFabric, true) }}:
- template: ../templates/enable-fabric-experimental-feature.yml

- template: ../templates/msbuild-sln.yml
parameters:
solutionDir: vnext
${{ if eq(matrix.UseFabric, true) }}:
solutionName: Microsoft.ReactNative.CppOnly.slnf
solutionName: Microsoft.ReactNative.NewArch.sln
${{ else }}:
solutionName: Microsoft.ReactNative.sln
buildPlatform: ${{ matrix.BuildPlatform }}
Expand Down Expand Up @@ -193,6 +190,7 @@
Microsoft.ReactNative.Cxx.UnitTests\**
Microsoft.ReactNative.IntegrationTests\**
Microsoft.ReactNative.ComponentTests\**
Microsoft.ReactNative.CsWinRT\**
Microsoft.ReactNative.Managed\**
Microsoft.ReactNative.Managed.CodeGen\**
Microsoft.ReactNative.Managed.CodeGen.UnitTests\**
Expand Down
7 changes: 2 additions & 5 deletions .ado/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -316,14 +316,11 @@ extends:

- template: .ado/templates/apply-published-version-vars.yml@self

- ${{ if eq(matrix.UseFabric, true) }}:
- template: .ado/templates/enable-fabric-experimental-feature.yml@self

- template: .ado/templates/msbuild-sln.yml@self
parameters:
solutionDir: vnext
${{ if eq(matrix.UseFabric, true) }}:
solutionName: Microsoft.ReactNative.CppOnly.slnf
solutionName: Microsoft.ReactNative.NewArch.sln
${{ else }}:
solutionName: Microsoft.ReactNative.sln
buildPlatform: ${{ matrix.BuildPlatform }}
Expand All @@ -349,6 +346,7 @@ extends:
Microsoft.ReactNative\**
Microsoft.ReactNative.Managed\**
Microsoft.ReactNative.Managed.CodeGen\**
Microsoft.ReactNative.CsWinRT\**

- template: .ado/templates/component-governance.yml@self

Expand Down Expand Up @@ -433,7 +431,6 @@ extends:
- platform: ARM64
configuration: Debug


- template: .ado/templates/prep-and-pack-nuget.yml@self
parameters:
artifactName: Desktop
Expand Down
12 changes: 12 additions & 0 deletions .ado/templates/react-native-init-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ parameters:
- name: useNuGet
type: boolean
default: false
- name: publishNuGet
type: boolean
default: false
- name: runWack
type: boolean
default: false
Expand Down Expand Up @@ -56,6 +59,15 @@ steps:
- platform: ${{ parameters.platform }}
configuration: Release

- ${{ if eq(parameters.publishNuGet, true) }}:
- task: PublishPipelineArtifact@1
displayName: "Publish Artifact: CliInitNuGet.${{parameters.platform}}.${{parameters.configuration}}"
# Do nothing if the artifact was already published. E.g. after rerunning a past successful job attempt
continueOnError: true
inputs:
artifactName: CliInitNuGet.${{parameters.platform}}.${{parameters.configuration}}
targetPath: $(System.DefaultWorkingDirectory)/NugetRootFinal

- ${{ if endsWith(parameters.template, '-app') }}:
- script: |
npx --yes @react-native-community/cli@latest init testcli --version $(reactNativeDevDependency) --verbose --skip-install --install-pods false --skip-git-init true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Add new .NET projection for Microsoft.ReactNative",
"packageName": "react-native-windows",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Loading
Loading