Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

WindowsAppSDK 1.7.x breaks React Native Windows build (LNK1104 – win10- path bug)

Đang mở
#15,562 9 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

@vineethkuttan đang làm issue này rồi.

Từ ngày 27/1/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

bug
Problem Description

React Native Windows build fails due to an invalid library path generated by
Microsoft.WindowsAppSDK 1.7.x.

The build system resolves this path incorrectly:
lib\win10-\Microsoft.WindowsAppRuntime.Bootstrap.lib

Architecture value is missing (win10- instead of win10-x64),
which causes a linker failure.

Downgrading WindowsAppSDK to 1.6.x fixes the issue.

Steps To Reproduce

Steps To Reproduce *

Create new project
npx react-native init RNWinTest

Add Windows support
npx react-native-windows init-windows

Build
npx react-native run-windows --arch x64

Build fails with LNK1104 error.

Expected Results

Build should complete successfully and launch the app.

Expected correct path:
lib\win10-x64\Microsoft.WindowsAppRuntime.Bootstrap.lib

CLI version

@react-native-community/cli: 20.0.0

Environment
OS: Windows 11 (x64)

Node: v22.x (via NVM)

Yarn: latest

React Native: 0.81.5

React Native Windows: 0.81.2

Windows App SDK (NuGet): 1.7.250401001

Windows App Runtime (system): 1.8.4 (x64)
Community Modules

react-native-gesture-handler

react-native-reanimated

react-navigation

axios

react-native-screens

Target React Native Architecture

New Architecture (WinAppSDK) Only

Target Platform Version

= 10.0.26100

Visual Studio Version

Visual Studio 2022

Build Configuration

Debug

Snack, code example, screenshot, or link to a repository

Minimal repro:
npx react-native init RNWinTest npx react-native-windows init-windows npx react-native run-windows --arch x64

Error:
LINK : fatal error LNK1104: lib\win10-\Microsoft.WindowsAppRuntime.Bootstrap.lib

Ngôn ngữ chính
C++
Star
17.4k
Fork
1.2k
Merge trung bình
2 ngày 17 giờ
Pull request đã merge (30 ngày)
13

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/react-native-windows

Tất cả issue của microsoft/react-native-windows

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.