Description
Environment
react-native -v
: react-native-cli: 2.0.1, react-native: 0.52.0npm ls rnpm-plugin-windows
: 0.2.8npm ls react-native-windows
: 0.52.0-rc.0node -v
: v9.4.0npm -v
: 5.6.0yarn --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:)
- 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