react-native-windows icon indicating copy to clipboard operation
react-native-windows copied to clipboard

Unable to package for WPF using generated command.

Open JohnCIT opened this issue 9 years ago • 3 comments

Environment

  1. react-native -v: 0.49.3
  2. npm ls rnpm-plugin-windows:0.2.8
  3. npm ls react-native-windows:0.49.0.-rc.2
  4. node -v:6.11.3
  5. npm -v:3.10.10

Then, specify:

  • Target Platform: WPF
  • Target Platform Version(s):.NET 4.6.1
  • Target Device(s):Desktop
  • Development Operating System:Windows 10/7
  • Visual Studio Version:Visual Studio 2017

Steps to Reproduce

(Write your steps here:)

  1. Run react-native wpf
  2. The generated command in react assets/index.wpf.bundle specifys use "react-native bundle --platform wpf"

Expected Behavior

The bundle should be built correctly

Actual Behavior

I get an error. Unrecognized platform wpf

Reproducible Demo

JohnCIT avatar Nov 13 '17 15:11 JohnCIT

@JohnCIT unfortunately due to limitations with the metro-bundler project, we can't create a "sub-platform" like WPF that shares code with UWP. Thus, both UWP and WPF use the windows platform moniker for the bundle command. cc @GantMan - are there any updates on the sub-platform work?

rozele avatar Nov 15 '17 22:11 rozele

It seems like advancements happen each day, but I haven't had a moment to step back and re-attack. Might be a holidays hackathon project for me. We'll see!

GantMan avatar Nov 16 '17 03:11 GantMan

i try but it not working @rozele can you help me

Javis1205 avatar Feb 02 '18 07:02 Javis1205