Skip to content
Merged
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
1 change: 1 addition & 0 deletions .ado/jobs/cli-init-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ jobs:

${{ if eq(matrix.useNuGet, true) }}:
dependsOn:
- UniversalBuild${{ matrix.platform }}Release
- UniversalBuild${{ matrix.platform }}ReleaseFabric

variables: [template: ../variables/windows.yml]
Expand Down
12 changes: 12 additions & 0 deletions .ado/jobs/universal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@
BuildPlatform: x86
UseFabric: false
CreateApiDocs: true
- Name: X86Release
BuildConfiguration: Release
BuildPlatform: x86
UseFabric: false
- Name: Arm64Release
BuildConfiguration: Release
BuildPlatform: ARM64
UseFabric: false
- Name: X64DebugFabric
BuildConfiguration: Debug
BuildPlatform: x64
Expand All @@ -44,6 +52,10 @@
UseFabric: true
- BuildEnvironment: SecurePullRequest
Matrix:
- Name: X64Release
BuildConfiguration: Release
BuildPlatform: x64
UseFabric: false
- Name: X64ReleaseFabric
BuildConfiguration: Release
BuildPlatform: x64
Expand Down
29 changes: 1 addition & 28 deletions .ado/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,9 @@ extends:
- template: .ado/templates/prep-and-pack-nuget.yml@self
parameters:
artifactName: ReactWindows
artifactName2: ReactWindowsFabric
publishCommitId: $(publishCommitId)
npmVersion: $(npmVersion)
nugetroot: $(System.DefaultWorkingDirectory)\ReactWindows
packMicrosoftReactNative: true
packMicrosoftReactNativeCxx: true
packMicrosoftReactNativeManaged: true
Expand All @@ -463,38 +463,12 @@ extends:
- platform: ARM64
configuration: Debug

- template: .ado/templates/prep-and-pack-nuget.yml@self
parameters:
artifactName: ReactWindowsFabric
publishCommitId: $(publishCommitId)
npmVersion: $(npmVersion)-Fabric
nugetroot: $(System.DefaultWorkingDirectory)\ReactWindows
packMicrosoftReactNative: true
packMicrosoftReactNativeCxx: true
# packMicrosoftReactNativeManaged: true
# packMicrosoftReactNativeManagedCodeGen: true
${{ if or(eq(variables['EnableCodesign'], 'true'), endsWith(variables['Build.SourceBranchName'], '-stable')) }}: # Sign if EnableCodeSign or on *-stable release builds
signMicrosoft: false # Temporarily disabled for all builds, see issue #14030
slices:
- platform: x64
configuration: Release
- platform: x86
configuration: Release
- platform: ARM64
configuration: Release
- platform: x64
configuration: Debug
- platform: x86
configuration: Debug
- platform: ARM64
configuration: Debug

- template: .ado/templates/prep-and-pack-nuget.yml@self
parameters:
artifactName: Desktop
publishCommitId: $(publishCommitId)
npmVersion: $(npmVersion)
nugetroot: $(System.DefaultWorkingDirectory)\Desktop
packDesktop: true
${{ if or(eq(variables['EnableCodesign'], 'true'), endsWith(variables['Build.SourceBranchName'], '-stable')) }}: # Sign if EnableCodeSign or on *-stable release builds
signMicrosoft: false # Temporarily disabled for all builds, see issue #14030
Expand All @@ -517,7 +491,6 @@ extends:
artifactName: DesktopFabric
publishCommitId: $(publishCommitId)
npmVersion: $(npmVersion)-Fabric
nugetroot: $(System.DefaultWorkingDirectory)\Desktop
packDesktop: true
${{ if or(eq(variables['EnableCodesign'], 'true'), endsWith(variables['Build.SourceBranchName'], '-stable')) }}: # Sign if EnableCodeSign or on *-stable release builds
signMicrosoft: false # Temporarily disabled for all builds, see issue #14030
Expand Down
13 changes: 11 additions & 2 deletions .ado/templates/prep-and-pack-nuget.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
parameters:
- name: artifactName
type: string
- name: artifactName2
type: string
default: ''
- name: slices
type: object

Expand All @@ -14,7 +17,7 @@ parameters:
# Note: NuGet pack expects platform-specific file separators ('\' on Windows).
- name: nugetroot
type: string
default: $(System.DefaultWorkingDirectory)\ReactWindows
default: $(System.DefaultWorkingDirectory)\NugetRoot

- name: packDesktop
type: boolean
Expand Down Expand Up @@ -62,7 +65,13 @@ steps:
displayName: 'Download ${{ parameters.artifactName }}.${{ slice.platform }}.${{ slice.configuration }}'
inputs:
artifact: ${{ parameters.artifactName }}.${{ slice.platform }}.${{ slice.configuration }}
path: ${{parameters.nugetroot}}/${{ slice.platform }}/${{ slice.configuration }}
path: ${{parameters.nugetroot}}/${{ parameters.artifactName }}/${{ slice.platform }}/${{ slice.configuration }}
- ${{ if ne(parameters.artifactName2, '') }}:
- task: DownloadPipelineArtifact@2
displayName: 'Download ${{ parameters.artifactName2 }}.${{ slice.platform }}.${{ slice.configuration }}'
inputs:
artifact: ${{ parameters.artifactName2 }}.${{ slice.platform }}.${{ slice.configuration }}
path: ${{parameters.nugetroot}}/${{ parameters.artifactName2 }}/${{ slice.platform }}/${{ slice.configuration }}

- task: PowerShell@2
displayName: Copy MSRN Resources to NuGet layout
Expand Down
9 changes: 6 additions & 3 deletions .ado/templates/prep-and-pack-single.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ parameters:

steps:

- powershell: gci $(System.DefaultWorkingDirectory)/NugetRoot
displayName: List files in NugetRoot

- ${{ if ne(parameters.slices, '') }}:
- powershell: >
.\StripAdditionalPlatformsFromNuspec.ps1
Expand All @@ -49,7 +52,7 @@ steps:
-slices (ConvertFrom-Json '${{ parameters.slices }}')
-debug
displayName: '${{ parameters.outputPackage }} - Strip slices from nuspec'
workingDirectory: $(System.DefaultWorkingDirectory)/ReactWindows
workingDirectory: $(System.DefaultWorkingDirectory)/NugetRoot

- ${{ if eq(parameters.codesignBinaries, true) }}:
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
Expand All @@ -61,7 +64,7 @@ steps:
AuthAKVName: 'rnw-keyvault'
AuthCertName: 'React-Native-ESRP-App-Authentication'
AuthSignCertName: 'React-Native-PRSS-Authentication'
FolderPath: $(System.DefaultWorkingDirectory)/ReactWindows
FolderPath: $(System.DefaultWorkingDirectory)/NugetRoot
# Recursively finds files matching these patterns:
${{ if ne(parameters.binariesToSign, '') }}:
Pattern: ${{ parameters.binariesToSign }}
Expand Down Expand Up @@ -102,7 +105,7 @@ steps:
inputs:
command: pack
verbosityPack: 'Detailed'
packagesToPack: $(System.DefaultWorkingDirectory)/ReactWindows/${{ parameters.outputPackage }}.nuspec
packagesToPack: $(System.DefaultWorkingDirectory)/NugetRoot/${{ parameters.outputPackage }}.nuspec
packDestination: $(System.DefaultWorkingDirectory)/NugetRootFinal
buildProperties: version=${{ parameters.packageVersion }};id=${{ parameters.outputPackage }};${{ parameters.buildProperties }}

Expand Down
5 changes: 3 additions & 2 deletions .ado/templates/react-native-init-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ steps:
- ${{ if eq(parameters.useNuGet, true) }}:
- template: prep-and-pack-nuget.yml
parameters:
artifactName: ReactWindowsFabric
npmVersion: $(npmVersion)-Fabric
artifactName: ReactWindows
artifactName2: ReactWindowsFabric
npmVersion: $(npmVersion)
packMicrosoftReactNative: true
packMicrosoftReactNativeCxx: true
slices:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Merge New and Old Arch Microsoft.ReactNative Nuget packages",
"packageName": "react-native-windows",
"email": "jthysell@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,8 @@
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Only include Microsoft.ReactNative.* NuGet packages that C++ (app and lib) projects need when using UseExperimentalNuget. -->
<Choose>
<When Condition="'$(RnwNewArch)' == 'true'">
<ItemGroup>
<PackageReference Include="Microsoft.ReactNative" Version="$(ReactNativeWindowsVersion)-Fabric" />
<PackageReference Include="Microsoft.ReactNative.Cxx" Version="$(ReactNativeWindowsVersion)-Fabric" />
</ItemGroup>
</When>
<Otherwise>
<ItemGroup>
<PackageReference Include="Microsoft.ReactNative" Version="$(ReactNativeWindowsVersion)" />
<PackageReference Include="Microsoft.ReactNative.Cxx" Version="$(ReactNativeWindowsVersion)" />
</ItemGroup>
</Otherwise>
</Choose>
<ItemGroup>
<PackageReference Include="Microsoft.ReactNative" Version="$(ReactNativeWindowsVersion)" />
<PackageReference Include="Microsoft.ReactNative.Cxx" Version="$(ReactNativeWindowsVersion)" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
<file src="$nugetroot$\Microsoft.ReactNative.Managed.CodeGen.targets" target="build"/>
<file src="$nugetroot$\Microsoft.ReactNative.VersionCheck.targets" target="build"/>

<file src="$nugetroot$\$baseplatform$\$baseconfiguration$\Microsoft.ReactNative.Managed.CodeGen\Publish\**" target="tools"/>
<file src="$nugetroot$\ReactWindows\$baseplatform$\$baseconfiguration$\Microsoft.ReactNative.Managed.CodeGen\Publish\**" target="tools"/>
</files>
</package>
46 changes: 23 additions & 23 deletions vnext/Scripts/Microsoft.ReactNative.Managed.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,39 +26,39 @@
<file src="$nugetroot$\Microsoft.ReactNative.Managed.targets" target="build"/>
<file src="$nugetroot$\Microsoft.ReactNative.VersionCheck.targets" target="build"/>

<file src="$nugetroot$\$baseplatform$\$baseconfiguration$\Microsoft.ReactNative.Managed\ref\Microsoft.ReactNative.Managed.dll" target="ref\uap10.0"/>
<file src="$nugetroot$\$baseplatform$\$baseconfiguration$\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.xml" target="ref\uap10.0"/>
<file src="$nugetroot$\ReactWindows\$baseplatform$\$baseconfiguration$\Microsoft.ReactNative.Managed\ref\Microsoft.ReactNative.Managed.dll" target="ref\uap10.0"/>
<file src="$nugetroot$\ReactWindows\$baseplatform$\$baseconfiguration$\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.xml" target="ref\uap10.0"/>

<!-- Include in Microsoft.ReactNative.Managed -->
<file src="$nugetroot$\ARM64\Release\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.dll" target="runtimes\win10-arm64\native" />
<file src="$nugetroot$\ARM64\Release\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.pdb" target="runtimes\win10-arm64\native" />
<file src="$nugetroot$\ARM64\Release\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.pri" target="runtimes\win10-arm64\native" />
<file src="$nugetroot$\ReactWindows\ARM64\Release\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.dll" target="runtimes\win10-arm64\native" />
<file src="$nugetroot$\ReactWindows\ARM64\Release\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.pdb" target="runtimes\win10-arm64\native" />
<file src="$nugetroot$\ReactWindows\ARM64\Release\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.pri" target="runtimes\win10-arm64\native" />

<file src="$nugetroot$\x86\Release\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.dll" target="runtimes\win10-x86\native" />
<file src="$nugetroot$\x86\Release\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.pdb" target="runtimes\win10-x86\native" />
<file src="$nugetroot$\x86\Release\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.pri" target="runtimes\win10-x86\native" />
<file src="$nugetroot$\ReactWindows\x86\Release\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.dll" target="runtimes\win10-x86\native" />
<file src="$nugetroot$\ReactWindows\x86\Release\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.pdb" target="runtimes\win10-x86\native" />
<file src="$nugetroot$\ReactWindows\x86\Release\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.pri" target="runtimes\win10-x86\native" />

<file src="$nugetroot$\x64\Release\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.dll" target="runtimes\win10-x64\native" />
<file src="$nugetroot$\x64\Release\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.pdb" target="runtimes\win10-x64\native" />
<file src="$nugetroot$\x64\Release\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.pri" target="runtimes\win10-x64\native" />
<file src="$nugetroot$\ReactWindows\x64\Release\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.dll" target="runtimes\win10-x64\native" />
<file src="$nugetroot$\ReactWindows\x64\Release\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.pdb" target="runtimes\win10-x64\native" />
<file src="$nugetroot$\ReactWindows\x64\Release\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.pri" target="runtimes\win10-x64\native" />

<!-- Include in Microsoft.ReactNative.Managed.Debug -->
<file src="$nugetroot$\ARM64\Debug\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.dll" target="runtimes\win10-arm64\native" />
<file src="$nugetroot$\ARM64\Debug\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.pdb" target="runtimes\win10-arm64\native" />
<file src="$nugetroot$\ARM64\Debug\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.pri" target="runtimes\win10-arm64\native" />
<file src="$nugetroot$\ReactWindows\ARM64\Debug\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.dll" target="runtimes\win10-arm64\native" />
<file src="$nugetroot$\ReactWindows\ARM64\Debug\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.pdb" target="runtimes\win10-arm64\native" />
<file src="$nugetroot$\ReactWindows\ARM64\Debug\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.pri" target="runtimes\win10-arm64\native" />

<file src="$nugetroot$\x86\Debug\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.dll" target="runtimes\win10-x86\native" />
<file src="$nugetroot$\x86\Debug\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.pdb" target="runtimes\win10-x86\native" />
<file src="$nugetroot$\x86\Debug\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.pri" target="runtimes\win10-x86\native" />
<file src="$nugetroot$\ReactWindows\x86\Debug\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.dll" target="runtimes\win10-x86\native" />
<file src="$nugetroot$\ReactWindows\x86\Debug\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.pdb" target="runtimes\win10-x86\native" />
<file src="$nugetroot$\ReactWindows\x86\Debug\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.pri" target="runtimes\win10-x86\native" />

<file src="$nugetroot$\x64\Debug\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.dll" target="runtimes\win10-x64\native" />
<file src="$nugetroot$\x64\Debug\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.pdb" target="runtimes\win10-x64\native" />
<file src="$nugetroot$\x64\Debug\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.pri" target="runtimes\win10-x64\native" />
<file src="$nugetroot$\ReactWindows\x64\Debug\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.dll" target="runtimes\win10-x64\native" />
<file src="$nugetroot$\ReactWindows\x64\Debug\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.pdb" target="runtimes\win10-x64\native" />
<file src="$nugetroot$\ReactWindows\x64\Debug\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.pri" target="runtimes\win10-x64\native" />

<!-- XBF files need to be included for Debug since they are not embedded in the PRI -->
<file src="$nugetroot$\ARM64\Debug\Microsoft.ReactNative\**\*.xbf" target="runtimes\win10-arm64\native" />
<file src="$nugetroot$\x86\Debug\Microsoft.ReactNative\**\*.xbf" target="runtimes\win10-x86\native" />
<file src="$nugetroot$\x64\Debug\Microsoft.ReactNative\**\*.xbf" target="runtimes\win10-x64\native" />
<file src="$nugetroot$\ReactWindows\ARM64\Debug\Microsoft.ReactNative\**\*.xbf" target="runtimes\win10-arm64\native" />
<file src="$nugetroot$\ReactWindows\x86\Debug\Microsoft.ReactNative\**\*.xbf" target="runtimes\win10-x86\native" />
<file src="$nugetroot$\ReactWindows\x64\Debug\Microsoft.ReactNative\**\*.xbf" target="runtimes\win10-x64\native" />

</files>
</package>
2 changes: 0 additions & 2 deletions vnext/Scripts/Microsoft.ReactNative.VersionCheck.targets
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@

<PropertyGroup>
<_ReactNativeWindowsVersionCheckNugetVersion>$$nuGetPackageVersion$$</_ReactNativeWindowsVersionCheckNugetVersion>
<!-- Strip out the -Fabric qualifier from the version string if present -->
<_ReactNativeWindowsVersionCheckNugetVersion>$(_ReactNativeWindowsVersionCheckNugetVersion.Replace('-Fabric', ''))</_ReactNativeWindowsVersionCheckNugetVersion>
</PropertyGroup>

<!-- Validate package.json file -->
Expand Down
Loading