Skip to content

Commit 80b98c3

Browse files
Merge branch 'microsoft:main' into impAccessibilityAnnotation2.0
2 parents 1e6c2bf + 4f21ac8 commit 80b98c3

File tree

96 files changed

+4422
-424
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+4422
-424
lines changed

.ado/jobs/e2e-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ jobs:
8484
buildPlatform: ${{ matrix.BuildPlatform }}
8585
buildLogDirectory: $(BuildLogDirectory)
8686
workingDirectory: packages/e2e-test-app
87+
errorOnNuGetLockChanges: false # Sometimes the content hashes of NuGet packages are wrong on VMs, workaround for later .NET versions don't work for UWP C#.
8788

8889
- script: |
8990
echo ##vso[task.setvariable variable=StartedTests]true

.ado/jobs/integration-test.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,15 @@ jobs:
9494
- ${{ if eq(matrix.BuildConfiguration, 'Debug') }}:
9595
# The build is more likely to crash after we've started other bits that
9696
# take up memory. Do the expensive parts of the build first.
97-
- script: yarn windows --no-launch --no-packager --no-deploy --no-autolink --arch ${{ matrix.BuildPlatform }} --logging --buildLogDirectory $(BuildLogDirectory)
98-
displayName: yarn windows --no-launch
99-
workingDirectory: packages/integration-test-app
97+
- template: ../templates/run-windows-with-certificates.yml
98+
parameters:
99+
buildEnvironment: ${{ parameters.BuildEnvironment }}
100+
buildConfiguration: ${{ matrix.BuildConfiguration }}
101+
buildPlatform: ${{ matrix.BuildPlatform }}
102+
buildLogDirectory: $(BuildLogDirectory)
103+
workingDirectory: packages/integration-test-app
104+
moreMSBuildProps: --no-packager --no-deploy --no-autolink
105+
errorOnNuGetLockChanges: false # Sometimes the content hashes of NuGet packages are wrong on VMs, workaround for later .NET versions don't work for UWP C#.
100106

101107
- powershell: Start-Process npm.cmd -ArgumentList "run","start"
102108
displayName: Start packager
@@ -132,8 +138,18 @@ jobs:
132138
workingDirectory: packages/integration-test-app
133139

134140
- ${{ if eq(matrix.BuildConfiguration, 'Release') }}:
135-
- script: yarn windows --release ${{ matrix.DeployOptions }} --no-packager --no-autolink --arch ${{ matrix.BuildPlatform }} --logging --buildLogDirectory $(BuildLogDirectory)
136-
displayName: yarn windows --release
141+
- template: ../templates/run-windows-with-certificates.yml
142+
parameters:
143+
buildEnvironment: ${{ parameters.BuildEnvironment }}
144+
buildConfiguration: ${{ matrix.BuildConfiguration }}
145+
buildPlatform: ${{ matrix.BuildPlatform }}
146+
buildLogDirectory: $(BuildLogDirectory)
147+
workingDirectory: packages/integration-test-app
148+
moreMSBuildProps: ${{ matrix.DeployOptions }} --no-packager --no-autolink
149+
errorOnNuGetLockChanges: false # Sometimes the content hashes of NuGet packages are wrong on VMs, workaround for later .NET versions don't work for UWP C#.
150+
151+
- script: yarn windows --release --no-build ${{ matrix.DeployOptions }} --no-packager --no-autolink --arch ${{ matrix.BuildPlatform }} --logging
152+
displayName: yarn windows --release --no-build
137153
workingDirectory: packages/integration-test-app
138154

139155
- ${{ if ne(matrix.DeployOptions, '--no-deploy') }}:

.ado/jobs/playground.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -130,16 +130,6 @@ jobs:
130130
parameters:
131131
workingDir: packages\playground\windows
132132

133-
# NuGet ignores packages.config if it detects <PackageReference>.
134-
# Use restore packages.config directly to keep compabitility with ReactNativePicker.
135-
- pwsh: |
136-
Get-ChildItem -Recurse -Path packages.config |`
137-
Foreach-Object {`
138-
NuGet.exe Restore -PackagesDirectory packages $_`
139-
}
140-
workingDirectory: packages/playground/windows
141-
displayName: Restore packages.config items
142-
143133
- template: ../templates/msbuild-sln.yml
144134
parameters:
145135
solutionDir: packages/playground/windows

.ado/jobs/sample-apps.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ jobs:
8383
deployOption: ${{ matrix.DeployOption }}
8484
buildLogDirectory: ${{ variables['BuildLogDirectory'] }}
8585
workingDirectory: packages/sample-apps
86+
errorOnNuGetLockChanges: false # Sometimes the content hashes of NuGet packages are wrong on VMs, workaround for later .NET versions don't work for UWP C#.
8687

8788
- script: yarn bundle-cpp --verbose
8889
displayName: Create SampleApp bundle
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
parameters:
2+
- name: errorOnNuGetLockChanges
3+
type: boolean
4+
default: true
5+
6+
steps:
7+
- powershell: |
8+
& git add */packages*.lock.json
9+
$changed = git status --porcelain=v1 */packages*.lock.json
10+
if ($changed -ne $null) {
11+
Write-Host "Detected NuGet lock file changes during the build:"
12+
Write-Host Files changed:`n([string]::Join("`n", $changed))
13+
$diff = git diff --cached -- */packages*.lock.json
14+
Write-Host Diff:`n([string]::Join("`n", $diff))
15+
$msg = "Detected NuGet lock file changes during the build. Run vnext/Scripts/NuGetRestoreForceEvaluateAllSolutions.ps1 locally in a VS Dev PowerShell to update lock files, then submit the changes."
16+
if ("${{ parameters.errorOnNuGetLockChanges }}" -eq "True") {
17+
Write-Host "##vso[task.logissue type=error]Detected NuGet lock file changes during the build. Run vnext/Scripts/NuGetRestoreForceEvaluateAllSolutions.ps1 locally in a VS Dev PowerShell to update lock files, then submit the changes."
18+
[Environment]::Exit(-1)
19+
}
20+
}
21+
displayName: Detect NuGet lock file changes during build
22+
condition: succeededOrFailed()

.ado/templates/msbuild-sln.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,7 @@ steps:
5555
$(MsBuildWarnAsErrorArgument)
5656
${{parameters.msbuildArguments}}
5757

58-
- powershell: |
59-
& git add */packages*.lock.json
60-
$changed = git status --porcelain=v1 */packages*.lock.json
61-
if ($changed -ne $null) {
62-
Write-Host "##[warning] Detected packages.lock.json changes. See full log for details."
63-
Write-Host Files changed:`n([string]::Join("`n", $changed))
64-
$diff = git diff --cached -- */packages*.lock.json
65-
Write-Host Diff:`n([string]::Join("`n", $diff))
66-
Write-Host "Run vnext/Scripts/NuGetRestoreForceEvaluateAllSolutions.ps1 to update lock files locally."
67-
}
68-
displayName: Detect packages.lock.json changes during build
69-
condition: succeededOrFailed()
58+
- template: detect-nuget-lockfile-changes.yml
7059

7160
- template: upload-build-logs.yml
7261
parameters:

.ado/templates/run-windows-with-certificates.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ parameters:
2626
- name: restoreForceEvaluate
2727
type: boolean
2828
default: true
29+
- name: errorOnNuGetLockChanges
30+
type: boolean
31+
default : true
2932
- name: moreMSBuildProps
3033
type: string
3134
default: ''
@@ -77,3 +80,8 @@ steps:
7780
workingDirectory: ${{ parameters.workingDirectory }}
7881
7982
- template: ../templates/cleanup-certificate.yml
83+
84+
- ${{ if eq(parameters.restoreLockedMode, 'true') }}:
85+
- template: detect-nuget-lockfile-changes.yml
86+
parameters:
87+
errorOnNuGetLockChanges: ${{ parameters.errorOnNuGetLockChanges }}

Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<PropertyGroup Label="NuGet">
2929
<MSBuildProjectExtensionsPath Condition="'$(ProjectName)' != ''">$(RootIntDir)\ProjectExtensions\$(ProjectName)\</MSBuildProjectExtensionsPath>
3030
<MSBuildProjectExtensionsPath Condition="'$(ProjectName)' == ''">$(RootIntDir)\ProjectExtensions\$(MSBuildProjectName)\</MSBuildProjectExtensionsPath>
31+
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
3132
</PropertyGroup>
3233

3334
<!-- User overrides -->

packages/@react-native-windows/automation-channel/CHANGELOG.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
11
{
22
"name": "@react-native-windows/automation-channel",
33
"entries": [
4+
{
5+
"date": "Wed, 30 Apr 2025 05:27:56 GMT",
6+
"version": "0.12.289",
7+
"tag": "@react-native-windows/automation-channel_v0.12.289",
8+
"comments": {
9+
"patch": [
10+
{
11+
"author": "jthysell@microsoft.com",
12+
"package": "@react-native-windows/automation-channel",
13+
"commit": "99b2a74ecb0b06435eaa1efc8c1f34025943d3a7",
14+
"comment": "Fix NuGet lock files and enforce them not changing accidentally"
15+
},
16+
{
17+
"author": "beachball",
18+
"package": "@react-native-windows/automation-channel",
19+
"comment": "Bump react-native-windows to v0.0.0-canary.949",
20+
"commit": "not available"
21+
}
22+
]
23+
}
24+
},
425
{
526
"date": "Mon, 28 Apr 2025 05:24:25 GMT",
627
"version": "0.12.288",

packages/@react-native-windows/automation-channel/CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
# Change Log - @react-native-windows/automation-channel
22

3-
<!-- This log was last generated on Mon, 28 Apr 2025 05:24:25 GMT and should not be manually modified. -->
3+
<!-- This log was last generated on Wed, 30 Apr 2025 05:27:56 GMT and should not be manually modified. -->
44

55
<!-- Start content -->
66

7+
## 0.12.289
8+
9+
Wed, 30 Apr 2025 05:27:56 GMT
10+
11+
### Patches
12+
13+
- Fix NuGet lock files and enforce them not changing accidentally (jthysell@microsoft.com)
14+
- Bump react-native-windows to v0.0.0-canary.949
15+
716
## 0.12.288
817

918
Mon, 28 Apr 2025 05:24:25 GMT

0 commit comments

Comments
 (0)