Node : v6.10.3
OS : Windows 10
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed.
I have visual studio 2017 installed on my virtual machine. I have installed MS Build Tools separately. When I run a command ionic cordova build windows
it gives me error:
> cordova build windows Running command - failed!
[ERROR] Cordova encountered an error. You may get more insight by running the Cordova command above directly.
[ERROR] An error occurred while running cordova build windows (exit code 1):
MSBuild v4.0 is not supported, aborting. Error: AppPackages doesn’t exists.
Make sure to install Microsoft Visual Studio 2017 with the Windows 10 stuff checked.
I managed to create a Windows App on my computer at home, Cordova creates a project for Visual Studio I believe, this you can then open and compile it.
I might give you some more details on this once I’m home today from work.
yeah, I’ve done all that. it still won’t build. Now this was started on a Mac and then moved to a Win10 machine to compile for Windows. Not sure if that make a difference or not?
Wouldn’t think it should, really. Haven’t had the time yesterday to provide some more detail, sorry.
I’m just now looking at the Workloads you can choose when installing VS2017.
Make sure to definitely install the “Universal Windows Platform Development” and “Microsoft.VisualStudio.Workload.NetCoreTools”, maybe even the “Node.js” and “Microsoft.VisualStudio.Workload.NetWeb” one.
For sure I can’t say which ones you really need, when I installed VS2017 I simply got a bunch of the Workloads that were interesting for me. I’ll set myself a reminder on my phone so I get to creating a little video on how to build a Windows App with Ionic today.
So I fumbled around a bit yesterday after work. Originally I planned on creating a small tutorial video, but then basically just muttered my way through that and decided not to do one. (Maybe later, when I prepare it some more.)
But my steps for building a Windows Application were the following:
(!!!) You need at least Windows 8.1 to build a Windows App! (!!!)
If you have not installed VS2017 yet, download the installer, select the “Universal Windows Platform Development” and “Microsoft Web Developer Tools” Workload during installation.
Finally I solved this issue by installing Build Tools for Visual Studio 2017. Assuming that you have already installed Visual Studio 2017 on your machine.
HI,
I’m new to build packages in Visual Studio
when you build iconic project which extension you got(.appx. .exe or .msi)
Is there is any way to package from .appx to .exe or .msi packages.
or
Build iconic framework cordova code to .exe or .msi package.