Skip to content

Unable to build React-Native-Windows App that forces a target SDK >= 10.0.15063 #1644

Closed
@adam-bratin

Description

@adam-bratin

Environment

  1. react-native -v: react-native-cli: 2.0.1, react-native: 0.52.0
  2. npm ls rnpm-plugin-windows: 0.2.8
  3. npm ls react-native-windows: 0.52.0-rc.0
  4. node -v: v9.4.0
  5. npm -v: 5.6.0
  6. yarn --version: 1.3.2

Then, specify:

  • Target Platform: UWP

  • Target Platform Version(s):
    Target SDK: 10.0.16299
    Min SDK: 10.0.15063

  • Target Device(s):
    Desktop

  • Development Operating System:
    Windows

  • Visual Studio Version:
    Visual Studio 2017 (15.5.5)

Steps to Reproduce

(Write your steps here:)

  1. Trying to run MSBuild /t:restore /t:Rebuild /p:Configuration=Release /p:Platform=x64

Expected Behavior

(Write what you thought would happen.)
The project should successfully build and generate an Appxbundle

Actual Behavior

error NU1201: Project ReactNative is not compatible with uap10.0 (UAP,Version=v10.0). Project ReactNative supports: uap10.0.10240 (UAP,Version=v10.0.10240)

(Write what happened. Add screenshots!)

Reproducible Demo

Potential fix would be to retarget react-native-windows to have a target SDK Version of 10.0.15063.

Create a new react-native windows app and change the target sdk for the UWP to RS3 and the min tested SDK to RS2. Then try to run MSBuild /t:restore

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions