Ionic and Visual Studio 2017 "Required version of Visual Studio not found."

I have the latest version of Ionic 3 installed. Everything works fine. I did a “ionic Cordova platform add windows” when I run the requirement it says: “Visual Studio: not installed”. But I have visual Studio 2017 Professional installed with all Cordova and Xamarin mobile development modules added. I still get the same error. Can someone tell me how Ionic can be configured with VS 2017 Professional?

What happens when you run cordova platform add windows --info? Please also include your ionic info output. Thanks.

This is what I get:
D:>cordova platform add windows --info

Using cordova-fetch for cordova-windows@^5.0.0
Error: Platform windows already added.

D:>cordova requirements

Requirements check results for windows:
Windows OS: installed Windows 10
MSBuild Tools: not installed
MSBuild tools v.14.0 not found. Please install Visual Studio 2015 Community from https://www.visualstudio.com/downloads/download-visual-studio-vs
Visual Studio: not installed
Required version of Visual Studio not found. Please install Visual Studio 2015 Community from https://www.visualstudio.com/downloads/download-visual-studio-vs
Windows SDK: installed 10.0
Windows Phone SDK: installed 10.0
Error: Some of requirements check failed

Run cordova platform remove windows first then retry to add the platform.[quote=“xcerts, post:3, topic:94538”]
MSBuild Tools: not installed
MSBuild tools v.14.0 not found. Please install Visual Studio 2015 Community from Download Visual Studio Tools - Install Free for Windows, Mac, Linux
Visual Studio: not installed
Required version of Visual Studio not found. Please install Visual Studio 2015 Community from Download Visual Studio Tools - Install Free for Windows, Mac, Linux
[/quote]

That is pretty clear, isn’t it? (Although the “2015” of course is bogus - you can also use newer ones)

What is you ionic info output?

Sujan,
I appreciate the prompt response.
What concerns me is that I have VS 2017 Pro installed with all the mobile components added. See image below. Why Cordova can’t find this?

I think you have to select something else… that I don’t remember… How do I get tot hat view you’re at?

Ok, found it in the installer and after 15 minutes of updates for the installer…

I think the stuff was under “Universal Windows Platform de…” on the right:
image

1 Like

I have all that installed but still get the same
Requirements check results for windows:

Windows OS: installed Windows 10
MSBuild Tools: not installed
MSBuild tools v.14.0 not found. Please install Visual Studio 2015 Community from https://www.visualstudio.com/downloads/download-visual-studio-vs
Visual Studio: not installed
Required version of Visual Studio not found. Please install Visual Studio 2015 Community from https://www.visualstudio.com/downloads/download-visu
al-studio-vs
Windows SDK: installed 10.0
Windows Phone SDK: installed 10.0
Error: Some of requirements check failed

Somehow Cordova doesn’t recognize these two things. Did it work before on that machine? Or ever for you?

There is a Slack for Cordova at http://slack.cordova.io where also a #cordova-windows channel exists. Maybe ask there.

I have this working and I don’t remember everything I had to do but at least try this:

  1. make sure cordova is up to date 7.0.1 is latest
  2. install tools for win8 even if only targeting win10 (might be a dependency on older msbuild --memory vague on this one)
  3. follow: https://cordova.apache.org/docs/en/latest/guide/platforms/win8/index.html
  4. see if you can build a cordova app directly from VS skipping ionic cli (usually works) then compare with your current app and try and spot the dif
1 Like

Anyone got this issue solved?

I am struggling with it

What is your cordova requirements output?

My cordova requirements output is:

equirements check results for windows:
Windows OS: installed Windows 10
MSBuild Tools: not installed
MSBuild tools v.14.0 not found. Please install Visual Studio 2015 Community from https://www.visualstudio.com/downloads/download-visual-studio-vs
Visual Studio: not installed
Required version of Visual Studio not found. Please install Visual Studio 2015 Community from https://www.visualstudio.com/downloads/download-visual-studio-vs
Windows SDK: installed 10.0
Windows Phone SDK: installed 10.0
Error: Some of requirements check failed

I can successfully build and run ionic/cordova apps in Visual Studio 2017. But outside Visual Studio with the cordova CLI that seems impossible. Is it just that Visual Studio 2017 is not supported? I find it hard to believe because then the web would be full of people reporting the same problem, right?

Did you install Visual Studio 2015 Community?

I haven’t. Cordova documentation says VS 2015 or newer is required. Is it just that Visual Studio 2017 is not supported?
I find it hard to believe because then the web would be full of people reporting the same problem, right?

Well, I know of several posts here in the forum where exactly this was the problem - inlcuding my own experience :stuck_out_tongue: You can just install it additionally to 2017, should work fine.

1 Like

Alright man, thanks!

From your posts in this thread I thought you got it working with VS2017

I think these posts are from before I figured out that I actually had both installed and that is why it worked for me :stuck_out_tongue:

It works with VS2015, but unfortunately I am forced to use VS2017 since Ionic Storage uses cordova-sqlite-storage that wants VS2017 (unless you use a legacy version).

I am fine with manually opening the cordova VS project in VS2017 and compile from there instead of using ionic cordova build windows.

My questios is: how do I update the www folder in the windows platform folder if I can’t run ionic cordova build windows?

I need to find a way of building the Ionic project, update the www folder in the windows platform so that I can then build for windows from VS2017.

Any clues?

ionic cordova prepare windows should do the job I think.