A while ago I updated my whole Ionic / Cordova project to use the latest version of everything. This included updating node. Cordova etc. It has been a bit slow going as I have had to fit this between another tasks. On my Windows machine, I have also since uninstalled Visual Studio 2017 Enterprise , replaced with Visual Studio 2017 Professional (was a temp solution due to some licensing issue my company was having), and I have now installed Visual Studio 2019 Enterprise.
So, short story, there have been a number of changes to my system.
I finally reached the stage where I want to rebuild my Windows (UWP) version of the app. This build was previously working, but now (due to all these changes), I have broken something.
First of all, the Cordova build was looking for MSBuild in a location that no longer exits. I found a registry setting for this, and pointed this to my 2017 MSBuild. I still had issues.
From,Ionic info, I have the following environment info…
Cordova: Cordova CLI : 9.0.0 (firstname.lastname@example.org) Cordova Platforms : android 8.0.0, windows 7.0.0 Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 12 other plugins)
Issue 1 (side question)
Next I tried to open the Cordova UWP project in my Visual Studio 2019 , and got a lot of errors (the projects would not even load). Someone has since said VS 2019 will no longer support Cordova projects?
My first question is “is this true” ? Will we from now on need an older Visual Studio to build Cordova projects?
Issue 2 (main question)
I next opened the projects using my Visual Studio 2017. It prompted my to install a toolkit (from memory), and I could then open the projects (so progress).
However, when I try to build, I get the errors from the SQLite3.UWP project
cannot open "winapifamily.h" cannot open "windows.h"
These are references from files such as
corecrt.h which are all referenced from the folder
C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt
So, my question here is what can I do to get these missing files? Am I still missing some other dependency?
Thanks in advance for any help!