Skip to content

Upgrade to Visual Studio 2026#16170

Open
JunielKatarn wants to merge 30 commits into
microsoft:mainfrom
jurocha-ms:vs18
Open

Upgrade to Visual Studio 2026#16170
JunielKatarn wants to merge 30 commits into
microsoft:mainfrom
jurocha-ms:vs18

Conversation

@JunielKatarn
Copy link
Copy Markdown
Contributor

@JunielKatarn JunielKatarn commented May 21, 2026

Description

Add support for Visual Studio 2026 (MSVC 14.5).

Type of Change

Erase all that don't apply.

  • New feature (non-breaking change which adds functionality)

Why

Visual Studio 2026 has reached enouth adoption and maturity to be considered the standard IDE for Windows development.
Keeping Visual Studio 2022 as the default may force developers to have two different VS versions in their computers.

What

  • Updated dependency installation script to install Visual Studio 2026 and .NET 10.
  • Conditioned deprecated async-related flags and namespaces to older MSVC versions (14.4 and earlier).
  • Converted APIs that use std::future as coroutines to WinRT async types.
    Note: Used IBuffer instead of hstring because the 16 to 8 bit string conversion functions could drop non-printable bytes which are needed for Hermes bundle headers.

Microsoft Reviewers: Open in CodeFlow

@JunielKatarn JunielKatarn requested review from a team as code owners May 21, 2026 01:44
Comment thread vnext/Microsoft.ReactNative/Utils/LocalBundleReader.cpp Outdated
Comment thread vnext/Shared/DevSupportManager.cpp Outdated
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 21, 2026

Performance Test Results

Branch: vs18
Commit: b3e353da
Time: 2026-05-28T01:37:11.162Z
Tests: 161/161 passed

✅ Passed

161 scenario(s) across 28 suite(s) — no regressions

SectionList

Scenario Mean Median StdDev Renders vs Baseline
SectionList mount 4.70ms 4.00ms ±1.25ms 1 -20.0%
SectionList unmount 0.20ms 0.00ms ±0.42ms 0 +0.0%
SectionList rerender 9.30ms 10.00ms ±0.95ms 2 -4.8%
SectionList with-3-sections-15-items 4.70ms 5.00ms ±0.67ms 1 -9.1%
SectionList with-5-sections-50-items 5.70ms 5.00ms ±1.06ms 1 -16.7%
SectionList with-10-sections-200-items 5.60ms 5.00ms ±1.43ms 1 -9.1%
SectionList with-20-sections-200-items 4.70ms 5.00ms ±1.57ms 1 +0.0%
SectionList with-section-separator 1.70ms 2.00ms ±0.48ms 1 +0.0%
SectionList with-item-separator 2.10ms 2.00ms ±0.57ms 1 +0.0%
SectionList with-header-footer 1.70ms 2.00ms ±0.48ms 1 +0.0%
SectionList with-section-footer 2.10ms 2.00ms ±1.79ms 1 +0.0%
SectionList with-sticky-section-headers 1.50ms 1.00ms ±0.71ms 1 -50.0%
SectionList with-empty-list 0.50ms 0.50ms ±0.53ms 1 -50.0%
SectionList with-50-sections-1000-items 1.90ms 1.50ms ±1.52ms 1 -25.0%

FlatList

Scenario Mean Median StdDev Renders vs Baseline
FlatList mount 3.70ms 4.00ms ±0.67ms 1 +0.0%
FlatList unmount 0.10ms 0.00ms ±0.32ms 0 +0.0%
FlatList rerender 9.20ms 9.00ms ±1.48ms 2 +0.0%
FlatList with-10-items 4.30ms 4.00ms ±1.34ms 1 +0.0%
FlatList with-100-items 4.10ms 4.00ms ±0.57ms 1 -20.0%
FlatList with-500-items 5.10ms 5.00ms ±1.45ms 1 +25.0%
FlatList with-1000-items 3.60ms 4.00ms ±0.52ms 1 +0.0%
FlatList horizontal 4.00ms 4.00ms ±0.82ms 1 -20.0%
FlatList with-separator 1.70ms 2.00ms ±0.48ms 1 +0.0%
FlatList with-header-footer 1.30ms 1.00ms ±0.48ms 1 -50.0%
FlatList with-empty-list 0.40ms 0.00ms ±0.52ms 1 -100.0%
FlatList with-get-item-layout 1.20ms 1.00ms ±0.42ms 1 +0.0%
FlatList inverted 1.20ms 1.00ms ±0.42ms 1 -33.3%
FlatList with-num-columns 3.20ms 3.00ms ±2.10ms 1 +0.0%

TouchableOpacity

Scenario Mean Median StdDev Renders vs Baseline
TouchableOpacity mount 0.50ms 0.50ms ±0.53ms 1 -50.0%
TouchableOpacity unmount 0.10ms 0.00ms ±0.32ms 0 +0.0%
TouchableOpacity rerender 0.80ms 1.00ms ±0.42ms 2 +0.0%
TouchableOpacity custom-active-opacity 0.50ms 0.50ms ±0.53ms 1 -50.0%
TouchableOpacity disabled 0.60ms 1.00ms ±0.52ms 1 +0.0%
TouchableOpacity with-all-handlers 0.40ms 0.00ms ±0.52ms 1 -100.0%
TouchableOpacity with-hit-slop 0.90ms 1.00ms ±0.32ms 1 +0.0%
TouchableOpacity with-delay 0.70ms 1.00ms ±0.48ms 1 +0.0%
TouchableOpacity nested 1.70ms 1.00ms ±1.57ms 1 +0.0%
TouchableOpacity multiple-10 5.00ms 4.00ms ±1.73ms 1 -33.3%
TouchableOpacity multiple-50 22.40ms 22.00ms ±2.77ms 1 -24.1%
TouchableOpacity multiple-100 23.93ms 22.00ms ±8.56ms 1 -56.0%

ScrollView

Scenario Mean Median StdDev Renders vs Baseline
ScrollView mount 0.30ms 0.00ms ±0.48ms 1 +0.0%
ScrollView unmount 0.10ms 0.00ms ±0.32ms 0 +0.0%
ScrollView rerender 0.60ms 1.00ms ±0.52ms 2 +0.0%
ScrollView children-20 3.20ms 3.00ms ±1.08ms 1 -25.0%
ScrollView children-100 15.07ms 14.00ms ±2.43ms 1 -12.5%
ScrollView horizontal 3.00ms 3.00ms ±0.00ms 1 -25.0%
ScrollView sticky-headers 2.40ms 3.00ms ±0.84ms 1 +0.0%
ScrollView scroll-indicators 0.70ms 1.00ms ±0.48ms 1 +0.0%
ScrollView nested 1.20ms 1.00ms ±0.42ms 1 +0.0%
ScrollView content-container-style 0.60ms 1.00ms ±0.52ms 1 +0.0%
ScrollView children-500 20.07ms 20.00ms ±2.99ms 1 +5.3%

TouchableHighlight

Scenario Mean Median StdDev Renders vs Baseline
TouchableHighlight mount 0.40ms 0.00ms ±0.52ms 1 -100.0%
TouchableHighlight unmount 0.00ms 0.00ms ±0.00ms 0 +0.0%
TouchableHighlight rerender 0.70ms 1.00ms ±0.48ms 2 +0.0%
TouchableHighlight custom-underlay-color 0.40ms 0.00ms ±0.52ms 1 +0.0%
TouchableHighlight custom-active-opacity 0.30ms 0.00ms ±0.48ms 1 +0.0%
TouchableHighlight disabled 0.20ms 0.00ms ±0.42ms 1 +0.0%
TouchableHighlight with-all-handlers 0.20ms 0.00ms ±0.42ms 1 +0.0%
TouchableHighlight with-hit-slop 0.40ms 0.00ms ±0.52ms 1 +0.0%
TouchableHighlight nested-touchables 0.80ms 1.00ms ±0.42ms 1 +0.0%
TouchableHighlight multiple-touchables-10 1.90ms 2.00ms ±0.32ms 1 -33.3%
TouchableHighlight multiple-touchables-50 11.90ms 11.00ms ±2.69ms 1 -12.0%
TouchableHighlight multiple-touchables-100 21.70ms 21.00ms ±2.91ms 1 -6.7%

Pressable

Scenario Mean Median StdDev Renders vs Baseline
Pressable mount 0.20ms 0.00ms ±0.42ms 1 +0.0%
Pressable unmount 0.00ms 0.00ms ±0.00ms 0 +0.0%
Pressable rerender 0.50ms 0.50ms ±0.53ms 2 +0.0%
Pressable with-all-handlers 0.50ms 0.50ms ±0.53ms 1 +Infinity%
Pressable with-style-function 0.30ms 0.00ms ±0.48ms 1 +0.0%
Pressable disabled 0.20ms 0.00ms ±0.42ms 1 +0.0%
Pressable with-hit-slop 0.20ms 0.00ms ±0.42ms 1 +0.0%
Pressable nested 0.60ms 1.00ms ±0.52ms 1 +0.0%
Pressable multiple-10 2.53ms 3.00ms ±0.52ms 1 +0.0%
Pressable multiple-50 13.67ms 14.00ms ±1.72ms 1 +0.0%
Pressable multiple-100 19.27ms 20.00ms ±10.79ms 1 +66.7%

Modal

Scenario Mean Median StdDev Renders vs Baseline
Modal mount 0.30ms 0.00ms ±0.48ms 1 +0.0%
Modal unmount 0.00ms 0.00ms ±0.00ms 0 +0.0%
Modal rerender 0.60ms 1.00ms ±0.52ms 2 +Infinity%
Modal slide-animation 0.30ms 0.00ms ±0.48ms 1 +0.0%
Modal fade-animation 0.20ms 0.00ms ±0.42ms 1 +0.0%
Modal transparent 0.30ms 0.00ms ±0.48ms 1 +0.0%
Modal with-callbacks 0.10ms 0.00ms ±0.32ms 1 +0.0%
Modal rich-content 1.60ms 2.00ms ±0.52ms 1 +0.0%
Modal with-accessibility 0.10ms 0.00ms ±0.32ms 1 +0.0%

Image

Scenario Mean Median StdDev Renders vs Baseline
Image mount 0.10ms 0.00ms ±0.32ms 1 +0.0%
Image unmount 0.00ms 0.00ms ±0.00ms 0 +0.0%
Image rerender 0.00ms 0.00ms ±0.00ms 2 +0.0%
Image with-resize-mode 0.00ms 0.00ms ±0.00ms 1 +0.0%
Image with-border-radius 0.20ms 0.00ms ±0.42ms 1 +0.0%
Image with-tint-color 0.20ms 0.00ms ±0.42ms 1 +0.0%
Image with-blur-radius 0.20ms 0.00ms ±0.42ms 1 +0.0%
Image with-accessibility 0.00ms 0.00ms ±0.00ms 1 +0.0%
Image multiple-10 0.67ms 1.00ms ±0.49ms 1 +0.0%
Image multiple-50 3.33ms 3.00ms ±0.49ms 1 +0.0%
Image multiple-100 7.53ms 7.00ms ±1.06ms 1 -12.5%

ActivityIndicator

Scenario Mean Median StdDev Renders vs Baseline
ActivityIndicator mount 0.10ms 0.00ms ±0.32ms 1 +0.0%
ActivityIndicator unmount 0.00ms 0.00ms ±0.00ms 0 +0.0%
ActivityIndicator rerender 0.20ms 0.00ms ±0.42ms 2 +0.0%
ActivityIndicator size-large 0.00ms 0.00ms ±0.00ms 1 +0.0%
ActivityIndicator size-small 0.20ms 0.00ms ±0.42ms 1 +0.0%
ActivityIndicator with-color 0.10ms 0.00ms ±0.32ms 1 +0.0%
ActivityIndicator not-animating 0.10ms 0.00ms ±0.32ms 1 +0.0%
ActivityIndicator with-accessibility 0.10ms 0.00ms ±0.32ms 1 +0.0%
ActivityIndicator multiple-10 0.87ms 1.00ms ±0.35ms 1 +0.0%
ActivityIndicator multiple-50 3.40ms 3.00ms ±1.35ms 1 -25.0%
ActivityIndicator multiple-100 7.33ms 7.00ms ±1.40ms 1 +0.0%

Switch

Scenario Mean Median StdDev Renders vs Baseline
Switch mount 0.10ms 0.00ms ±0.32ms 1 +0.0%
Switch unmount 0.10ms 0.00ms ±0.32ms 0 +0.0%
Switch rerender 0.50ms 0.50ms ±0.53ms 2 +0.0%
Switch value-true 0.10ms 0.00ms ±0.32ms 1 +0.0%
Switch disabled 0.30ms 0.00ms ±0.48ms 1 +0.0%
Switch custom-colors 0.30ms 0.00ms ±0.48ms 1 +0.0%
Switch on-value-change 0.10ms 0.00ms ±0.32ms 1 +0.0%
Switch with-accessibility 0.10ms 0.00ms ±0.32ms 1 +0.0%
Switch multiple-10 1.40ms 1.00ms ±0.51ms 1 -50.0%
Switch multiple-50 8.47ms 7.00ms ±2.90ms 1 -22.2%
Switch multiple-100 17.07ms 18.00ms ±3.13ms 1 +12.5%

Button

Scenario Mean Median StdDev Renders vs Baseline
Button mount 0.40ms 0.00ms ±0.52ms 1 -100.0%
Button unmount 0.00ms 0.00ms ±0.00ms 0 +0.0%
Button rerender 1.00ms 1.00ms ±0.47ms 2 +0.0%
Button disabled 0.50ms 0.50ms ±0.53ms 1 -50.0%
Button with-color 0.50ms 0.50ms ±0.53ms 1 +0.0%
Button with-accessibility 0.50ms 0.50ms ±0.53ms 1 -50.0%
Button multiple-10 5.00ms 5.00ms ±1.25ms 1 -16.7%
Button multiple-50 19.00ms 22.00ms ±7.31ms 1 -18.5%
Button multiple-100 14.73ms 13.00ms ±3.49ms 1 -31.6%

TextInput

Scenario Mean Median StdDev Renders vs Baseline
TextInput mount 0.20ms 0.00ms ±0.42ms 1 +0.0%
TextInput unmount 0.00ms 0.00ms ±0.00ms 0 +0.0%
TextInput rerender 0.10ms 0.00ms ±0.32ms 2 +0.0%
TextInput multiline 0.20ms 0.00ms ±0.42ms 1 +0.0%
TextInput with-value 0.20ms 0.00ms ±0.42ms 1 +0.0%
TextInput styled 0.20ms 0.00ms ±0.42ms 1 +0.0%
TextInput multiple-100 7.00ms 7.00ms ±1.31ms 1 +0.0%

View

Scenario Mean Median StdDev Renders vs Baseline
View mount 0.20ms 0.00ms ±0.42ms 1 +0.0%
View unmount 0.00ms 0.00ms ±0.00ms 0 +0.0%
View rerender 0.10ms 0.00ms ±0.32ms 2 +0.0%
View nested-50 3.40ms 3.00ms ±1.06ms 1 +0.0%
View nested-100 7.20ms 7.00ms ±1.26ms 1 +0.0%
View shadow 0.20ms 0.00ms ±0.42ms 1 +0.0%
View border-radius 0.10ms 0.00ms ±0.32ms 1 +0.0%
View nested-500 16.60ms 10.00ms ±11.80ms 1 +0.0%

Text

Scenario Mean Median StdDev Renders vs Baseline
Text mount 0.20ms 0.00ms ±0.42ms 1 +0.0%
Text unmount 0.10ms 0.00ms ±0.32ms 0 +0.0%
Text rerender 0.30ms 0.00ms ±0.48ms 2 +0.0%
Text long-1000 0.10ms 0.00ms ±0.32ms 1 +0.0%
Text nested 0.20ms 0.00ms ±0.42ms 1 +0.0%
Text styled 0.10ms 0.00ms ±0.32ms 1 +0.0%
Text multiple-100 7.27ms 7.00ms ±1.71ms 1 +0.0%

SectionList.native-perf-test.ts

Scenario Mean Median StdDev Renders vs Baseline
SectionList native mount 4.59ms 4.25ms ±0.83ms 1 -34.7%

FlatList.native-perf-test.ts

Scenario Mean Median StdDev Renders vs Baseline
FlatList native mount 4.48ms 3.98ms ±1.43ms 1 -56.9%

TouchableHighlight.native-perf-test.ts

Scenario Mean Median StdDev Renders vs Baseline
TouchableHighlight native mount 1.41ms 1.32ms ±0.24ms 1 -37.0%

TouchableOpacity.native-perf-test.ts

Scenario Mean Median StdDev Renders vs Baseline
TouchableOpacity native mount 1.64ms 1.57ms ±0.26ms 1 -50.1%

Pressable.native-perf-test.ts

Scenario Mean Median StdDev Renders vs Baseline
Pressable native mount 2.06ms 1.53ms ±1.06ms 1 -39.1%

ScrollView.native-perf-test.ts

Scenario Mean Median StdDev Renders vs Baseline
ScrollView native mount 3.24ms 3.12ms ±0.34ms 1 -22.9%

ActivityIndicator.native-perf-test.ts

Scenario Mean Median StdDev Renders vs Baseline
ActivityIndicator native mount 1.33ms 1.29ms ±0.19ms 1 -48.2%

TextInput.native-perf-test.ts

Scenario Mean Median StdDev Renders vs Baseline
TextInput native mount 1.98ms 1.97ms ±0.13ms 1 -51.8%

Switch.native-perf-test.ts

Scenario Mean Median StdDev Renders vs Baseline
Switch native mount 1.32ms 1.06ms ±0.74ms 1 -38.9%

Button.native-perf-test.ts

Scenario Mean Median StdDev Renders vs Baseline
Button native mount 1.82ms 1.74ms ±0.27ms 1 -33.0%

Modal.native-perf-test.ts

Scenario Mean Median StdDev Renders vs Baseline
Modal native mount 1.00ms 0.82ms ±0.66ms 1 -32.8%

Image.native-perf-test.ts

Scenario Mean Median StdDev Renders vs Baseline
Image native mount 1.76ms 1.66ms ±0.24ms 1 -26.5%

View.native-perf-test.ts

Scenario Mean Median StdDev Renders vs Baseline
View native mount 0.94ms 0.92ms ±0.07ms 1 -35.4%

Text.native-perf-test.ts

Scenario Mean Median StdDev Renders vs Baseline
Text native mount 1.18ms 1.14ms ±0.14ms 1 -34.4%

@JunielKatarn JunielKatarn requested a review from vmoroz May 23, 2026 05:53
@JunielKatarn JunielKatarn enabled auto-merge (squash) May 23, 2026 05:54
GetJavaScriptFromServerAsync retuns bundle contents as hstring (16 bit)
It then gets converted to an 8-bit string. This conversion drops
bytes consideres "invalid". Those bytes are expected as part of the Hermes bundle header.

Transmitting the bundle as an IBuffer preserves the original bytes and avoids the conversion issues.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates React Native Windows tooling and native code paths to support Visual Studio 2026/MSVC 14.5 while preserving compatibility for coroutine-related code that no longer supports the older /await flow.

Changes:

  • Updates dependency and health-check metadata for Visual Studio 2026 and .NET 10.
  • Gates /await usage to older toolsets and adjusts coroutine handle usage.
  • Converts bundle/dev-server async loading helpers from std::future to WinRT async operations using IBuffer.

Reviewed changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
vnext/Scripts/rnw-dependencies.ps1 Updates VS/.NET dependency checks and install tags.
packages/@react-native-windows/cli/src/commands/healthCheck/healthCheckList.ts Updates displayed health-check requirements.
packages/@react-native-windows/cli/src/utils/vsInstalls.ts Expands VS version search range.
vnext/PropertySheets/React.Cpp.props Gates /await by toolset version.
vnext/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj Gates /await by toolset version.
vnext/Mso.UnitTests/Mso.UnitTests.vcxproj Gates /await by toolset version.
vnext/Microsoft.ReactNative.IntegrationTests/Microsoft.ReactNative.IntegrationTests.vcxproj Gates /await by toolset version.
vnext/Microsoft.ReactNative.Cxx.UnitTests/Microsoft.ReactNative.Cxx.UnitTests.vcxproj Gates /await by toolset version.
vnext/Desktop.UnitTests/React.Windows.Desktop.UnitTests.vcxproj Gates /await by toolset version.
vnext/Shared/Networking/WinRTWebSocketResource.h Switches coroutine handle namespace for newer MSVC.
vnext/Shared/DevSupportManager.h Removes obsolete future include.
vnext/Shared/DevSupportManager.cpp Migrates dev-server fetch/poll helpers to WinRT async operations.
vnext/Microsoft.ReactNative/Utils/LocalBundleReader.h Updates bundle async API/member types to WinRT async buffers.
vnext/Microsoft.ReactNative/Utils/LocalBundleReader.cpp Reads bundle contents through IBuffer and converts at boundaries.
vnext/Microsoft.ReactNative.CsWinRT/Microsoft.ReactNative.CsWinRT.csproj Moves CsWinRT target framework to net8.0.
vnext/Microsoft.ReactNative.CsWinRT/packages.lock.json Updates lockfile for new framework/dependencies.
vnext/Microsoft.ReactNative.CsWinRT/packages.experimentalwinui3.lock.json Updates experimental lockfile for new framework/dependencies.
vnext/Microsoft.ReactNative.NewArch.sln Updates solution metadata for VS 2026.
vnext/Shared/Shared.vcxitems.filters Adds missing filter entry for WebSocketResourceFactory.cpp.
change/*.json Adds prerelease change records.

Comment on lines +49 to +50
winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Storage::Streams::IBuffer> GetJavaScriptFromServerAsync(
const std::string &url) {
// RuntimeScheduler only handles std::exception or jsi::JSError
catch (winrt::hresult_error const &e) {
throw std::exception(winrt::to_string(e.message()).c_str());
throw std::runtime_error(winrt::to_string(e.message()));
Comment thread vnext/Microsoft.ReactNative.NewArch.sln Outdated
Comment thread packages/@react-native-windows/cli/src/utils/vsInstalls.ts
Comment thread packages/@react-native-windows/cli/src/utils/vsInstalls.ts
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants