Deploying ionicBeta App to windows device?


Hey there,
I’m recently trying to get my my app (which is running on android and ios devices perfectly fine) to run on windows devices.
But with the ionic build windows I’m getting an error:

"$ ionic build windows
WARN: No ‘build:before’ gulp task found!
If your app requires a build step, you may want to ensure it runs before build.

The following image is skipped due to unsupported size: resources\ios\icon\icon-small@3x.png
Running command: “C:\Program Files\nodejs\node.exe” C:\Users\user\Documents\in-tech-industry-app\client\hooks\after_prepare\010_add_platform_class.js C:/Users/user/Documents/in-tech-industry-app/client
add to body class: platform-windows
Building project: C:\Users\user\Documents\in-tech-industry-app\client\platforms\windows\CordovaApp.Windows80.jsproj
Configuration : debug
Platform : anycpu
C:\Users\user\Documents\in-tech-industry-app\client\platforms\windows\CordovaApp.Windows80.jsproj(66,3): error MSB4019: Das importierte Projekt “C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Microsoft.VisualStudio…Default.props” was not found. Assure yourself, if the path -declaration is correct and that the file exists on disk.
Error: C:\Program Files (x86)\MSBuild\12.0\bin\amd64\msbuild.exe: Command failed with exit code 1

Running ‘build:after’ gulp task after build"

Can anyone help me get the app running?


Hmm, looks like you might be trying to use an older project with the newer CLI.

You might want to try with a scratch project to test out.

ionic -v 

ionic start temp --v2 --ts
cd temp
ionic platform add windows
ionic run windows --device

This should deploy the app to a windows universal desktop app

The error is probably coming from there not being a gulp files+


It kind a works but it shows just a blank?!

But how can I make it work for my existing app?


As long as your ionic 2 app has the windows mode in it, you can just do

ionic platform add windows
ionic run windows --device