How do i create windows app?

How do i add windows platform in ionic app…?

currently i created ionic app for the android device want to add android platform…

what are the prerequisite for adding windows platform.

Any information to generate windows app?

first check this for Windows Support in Ionic 2 and for adding a window platform just add " ionic platform add windows " :slight_smile:

I had successfully added windows platform but when i try to build this it gives me an error as below

D:\myApp>ionic build windows
Running command: “C:\Program Files\nodejs\node.exe” D:\myApp\hooks\after_prepare\010_add_platform_class.js D:\myApp
add to body class: platform-windows
Building project: D:\myApp\platforms\windows\CordovaApp.Windows.jsproj
Configuration : debug
Platform : anycpu
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(2049,5): error MSB3774: Could not find SDK “Microsoft.WinJS.2.0, Version=1.0”. [D:\myApp\platforms\windows\CordovaApp.Windows.jsproj]
Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code 1

Are you using Visual Studio?

I Think the solution that you may use it is to boot Visual Studio, select "File > New Project >Windows > Windows8 > Install Windows 8.1 and Windows Phone 8.0/8.1 Tools, to download the Windows platform and tools. :slight_smile:

I don’t use visual studio.

i just use CLI.

and i had set up all the things which required to develop the windows mobile app but still this error occurring.

I don’t use Visual Studio but i installed it.

You’ll need to install the tools for apache cordova within visual studio as well as the windows 10 sdk. Then you can just use the commandline to build and run in my experience, I don’t use visual studio for anything other than getting those required packages installed and keeping them up to date.

how can i install windows 10 sdk and from where?

Just go here :

and follow the download instruction.

By the way did you add this in your config.xml ?

    <preference name="windows-target-version" value="10.0"/>

I had follow all the instruction but still this error arise…

is it require to develop windows app using ionic framework?