-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*Description* This PR updates RNW to build with (and require) Visual Studio 2022. This includes upgrading the `Microsoft.ReactNative.Managed.CodeGen` project to .NET 6.0 This PR does not change the minimum / target Windows SDK versions for RNW or RNW apps. This PR does not change the language versions of C++ (17) and C# (8.0) used. *Type of Change* - Breaking change (fix or feature that would cause existing functionality to not work as expected) - This change requires a documentation update *Why* Visual Studio 2022 is the currently supported version of Visual Studio and what is available to download without an MSDN subscription to access older versions. As Visual Studio 2019 support is reduced/deprecated, we need to migrate. Closes #8750 Closes #9499 Closes #10130 *What* What's changed: * All VS project files have been updated to require a minimum of VS 2022 (aka version 17.0). * NuGet-based dependencies that are tied to VS version have been upgraded. * The `Microsoft.ReactNative.Managed.CodeGen` project has been updated to .NET 6.0 * The snapshots for the codegen tests have been updated to pass * The E2E Test app has been updated to the latest version of `react-native-xaml` (needed to fix build issues) * Snapshots for E2E tests have been updated to pass *Testing* Builds and tests All tests
- Loading branch information
1 parent
10e9788
commit 5885ee4
Showing
152 changed files
with
967 additions
and
832 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,71 @@ | ||
{ | ||
"imageType": "Managed", | ||
"baseImage": "/MicrosoftWindowsServer/WindowsServer/2019-Datacenter/latest", | ||
"baseImage": "/MicrosoftWindowsServer/WindowsServer/2022-Datacenter/latest", | ||
"artifacts": [ | ||
{ | ||
"Name": "windows-EnableDeveloperMode" | ||
"name": "windows-EnableDeveloperMode" | ||
}, | ||
{ | ||
"Name": "windows-enable-long-paths" | ||
"name": "windows-enable-long-paths" | ||
}, | ||
{ | ||
"Name": "windows-gitinstall" | ||
"name": "windows-gitinstall" | ||
}, | ||
{ | ||
"Name": "windows-AzPipeline-ImageHelpers" | ||
"name": "windows-AzPipeline-ImageHelpers" | ||
}, | ||
{ | ||
"Name": "windows-AzPipeline-InitializeVM" | ||
"name": "windows-AzPipeline-InitializeVM" | ||
}, | ||
{ | ||
"Name": "windows-AzPipeline-Install-VS", | ||
"Parameters": { | ||
"ToolSetFileName": "2019-default.json" | ||
"name": "windows-AzPipeline-powershellCore" | ||
}, | ||
{ | ||
"name": "windows-AzPipeline-7zip" | ||
}, | ||
{ | ||
"name": "windows-visualstudio-bootstrapper", | ||
"parameters": { | ||
"Workloads": "--add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.Universal --add Microsoft.Component.MSBuild --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.ComponentGroup.UWP.Support --add Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core --add Microsoft.VisualStudio.Component.Windows10SDK.19041 --add Microsoft.VisualStudio.ComponentGroup.UWP.VC --includeRecommended --includeOptional", | ||
"SKU": "Enterprise", | ||
"VSBootstrapperURL": "https://aka.ms/vs/17/release/vs_Enterprise.exe" | ||
} | ||
}, | ||
{ | ||
"name": "Windows-NodeJS", | ||
"parameters": { | ||
"Version": "16.13.0" | ||
} | ||
}, | ||
{ | ||
"Name": "windows-AzPipeline-NodeLts" | ||
"name": "windows-npm-global", | ||
"parameters": { | ||
"packages": "[email protected], [email protected], [email protected]", | ||
"addToPath": true | ||
} | ||
}, | ||
{ | ||
"name": "windows-chrome" | ||
}, | ||
{ | ||
"Name": "windows-chrome" | ||
"name": "windows-AzPipeline-WinAppDriver" | ||
}, | ||
{ | ||
"Name": "windows-AzPipeline-WinAppDriver" | ||
"name": "windows-dotnetcore-sdk", | ||
"parameters": { | ||
"DotNetCoreVersion": "2.1.818" | ||
} | ||
}, | ||
{ | ||
"name": "windows-dotnetcore-sdk", | ||
"parameters": { | ||
"DotNetCoreVersion": "3.1.412" | ||
} | ||
}, | ||
{ | ||
"Name": "windows-dotnetcore-sdk", | ||
"Parameters": { | ||
"DotNetCoreVersion": "3.1.401" | ||
"name": "windows-dotnetcore-sdk", | ||
"parameters": { | ||
"DotNetCoreVersion": "6.0.401" | ||
} | ||
} | ||
], | ||
|
@@ -47,4 +77,4 @@ | |
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
change/@react-native-windows-automation-channel-00041bab-d2c7-42ef-8abd-05b58b54138f.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "Upgrade to VS 2022", | ||
"packageName": "@react-native-windows/automation-channel", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@react-native-windows-automation-fc29def0-23e2-4730-b7a1-59a4a62f7c68.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "Upgrade to VS 2022", | ||
"packageName": "@react-native-windows/automation", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@react-native-windows-cli-194a5a46-f531-4507-b2db-d3a733b34a7a.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "prerelease", | ||
"comment": "Upgrade to VS 2022", | ||
"packageName": "@react-native-windows/cli", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@react-native-windows-telemetry-ad25992d-2d3b-4f16-82dd-e1639d3091c0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "prerelease", | ||
"comment": "Upgrade to VS 2022", | ||
"packageName": "@react-native-windows/telemetry", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/react-native-windows-467ff3e1-7e84-4df3-9df0-cec9b92426b9.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "prerelease", | ||
"comment": "Upgrade to VS 2022", | ||
"packageName": "react-native-windows", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/@react-native-windows/automation-channel/windows/AutomationChannel.sln
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.