How to run ionic app on real windows device using command prompt

I have successfully done add platform on windows,
But when i am strat the build process it will display error.
Please help me to how to run ionic 2 app in real windows device.

My Steps:-

1).


C:\IONIC2\myApp>ionic platform add windows
Adding windows project...


Creating Cordova Windows Project:


        Path: platforms\windows

        Namespace: com.ionicframework.myapp726275
        Name: SampleApplication

Windows project created with cordova-windows@4.4.3

Installing "cordova-plugin-console" for windows

Installing "cordova-plugin-device" for windows


Installing "cordova-plugin-splashscreen" for windows


Installing "cordova-plugin-statusbar" for windows


Installing "cordova-plugin-whitelist" for windows


Installing "ionic-plugin-keyboard" for windows

2).

Error:


C:\IONIC2\myApp>ionic run windows

> ionic-hello-world@0.0.0 ionic:build C:\IONIC2\myApp
> ionic-app-scripts build

[15:37:25]  ionic-app-scripts 1.3.5
[15:37:25]  build dev started ...
[15:37:25]  clean started ...
[15:37:25]  clean finished in 15 ms
[15:37:25]  copy started ...
[15:37:25]  transpile started ...
[15:37:27]  transpile finished in 2.21 s
[15:37:27]  preprocess started ...
[15:37:27]  deeplinks started ...
[15:37:27]  deeplinks finished in 31 ms
[15:37:27]  preprocess finished in 31 ms
[15:37:27]  webpack started ...
[15:37:28]  copy finished in 2.44 s
[15:37:36]  webpack finished in 8.87 s
[15:37:36]  sass started ...
[15:37:37]  sass finished in 1.17 s
[15:37:37]  postprocess started ...
[15:37:37]  postprocess finished in less than 1 ms
[15:37:37]  lint started ...
[15:37:37]  build dev finished in 12.31 s
[15:37:39]  lint finished in 1.83 s
MSBuild v4.0 is not supported, aborting.

Error: AppPackages doesn't exists

How to run ionic 2 app on real windows device using command prompt

Hello All,

Please help me.

How to run windows app on real device of ionic 2 app

Did you follow these https://cordova.apache.org/docs/en/dev/guide/platforms/win8/index.html#installing-the-requirements?

Same problem here. Have install VS2017 on Windows 10 and if i run “MSBuild -version” from console i get version number 15.
Try it with new project and get same error.

Can somebody help?

I think the problem is the missing registry entry for MSBuild in VS2017:
https://developercommunity.visualstudio.com/content/problem/2911/vs2017-rc-installer-does-not-write-registry-entrie.html

My Versions:
Cordova: 6.5.0
Ionic: 2.2.2
nodeJS: 6.10.2
OS: Windows 10

If i build with verbose tag i get the following infos:

Searching for available MSBuild versions...

Running command: C:\Windows\system32\reg.exe query HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\15.0 /v MSBuildToolsPath

Running command: C:\Windows\system32\reg.exe query HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0 /v MSBuildToolsPath

Running command: C:\Windows\system32\reg.exe query HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\12.0 /v MSBuildToolsPath


Running command: C:\Windows\system32\reg.exe query HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0 /v MSBuildToolsPath


Command finished with error code 1: C:\Windows\system32\reg.exe query,HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\12.0,/v,MSBuildToolsPath

Command finished with error code 1: C:\Windows\system32\reg.exe query,HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0,/v,MSBuildToolsPath

Command finished with error code 1: C:\Windows\system32\reg.exe query,HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\15.0,/v,MSBuildToolsPath

Command finished with error code 0: C:\Windows\system32\reg.exe query,HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0,/v,MSBuildToolsPath


Found MSBuild v4.0 at C:\Windows\Microsoft.NET\Framework64\v4.0.30319\

MSBuild v4.0 is not supported, aborting.

Does somebody has any idea?

Why not install VSStudio 2015 like the documentation says? It seems to be working with that.

If there is no other solution I will do it.

Install notebook from scratch and get latest version from VS. Have no problems with android apps.

You can just run 2015 and 2017 next to each other - not problem.

without vs 2015-17 we can build windows app ?, or any other tools to make or build ionic 2 app for windows mobile.

Not that I know of - as with iOS and XCode or Android and Android SDK you need some tool that can actually build for the platform.

Which Tools required for build ios app in ionic 2 from windows 10 operating system?
how to build windows app from windows 10 OS without install VS2015 ?
i am only use VS CODE editor

Totally different question, please create a new topic.[quote=“anil_thummar07, post:12, topic:88454”]
how to build windows app from windows 10 OS without install VS2015 ?
[/quote]

I don’t think this is possible - Visual Studio installs the tools needed in the right locations etc. You would have to ask the Cordova people at http://issues.cordova.io → Issues

ok thank you,
sure i will ask to cordova people.