Visual studio Tools for Apache Cordova version issue -
i tried create blank project vs2017 and, of course, works.
since in project have use version 7.0.1, first edit make edit row in config.xml file from
<vs:toolsetversion>6.3.1</vs:toolsetversion>
to
<vs:toolsetversion>7.0.1</vs:toolsetversion>
then, after edit, try again run in browser, 2 errors:
- error: can't find required module 'socket.io-client'. blankcordovaapp5
- node process unexpectedly exited while waiting property 'appurl'.
i don't know why version change causes these erros. can try use 7.0.1 version?
my whole config.xml is
<?xml version="1.0"?> <widget xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:vs="http://schemas.microsoft.com/appx/2014/htmlapps" id="io.cordova.myapp7b0d5f" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" defaultlocale="it-it"> <name>blankcordovaapp5</name> <description>progetto vuoto che usa apache cordova per la compilazione di un'app destinata piĆ¹ piattaforme per dispositivi mobili: android, ios e uwp (universal windows platform).</description> <author href="http://cordova.io" email="dev@cordova.apache.org">specificare qui il nome</author> <vs:template-name>blankjs</vs:template-name> <vs:toolsetversion>7.0.1</vs:toolsetversion> <!--<engine name="android" spec="5.2.1" /> <engine name="ios" spec="4.2.0" /> <engine name="windows" spec="4.4.2" />--> <content src="index.html" /> <access origin="*" /> <preference name="splashscreen" value="screen" /> <preference name="windows-target-version" value="10.0" /> <!-- support cordova 5.0.0 plugin system --> <plugin name="cordova-plugin-whitelist" spec="1.2.2" /> <allow-intent href="http://*/*" /> <allow-intent href="https://*/*" /> <allow-intent href="tel:*" /> <allow-intent href="sms:*" /> <allow-intent href="mailto:*" /> <allow-intent href="geo:*" /> <platform name="android"> <allow-intent href="market:*" /> </platform> <platform name="ios"> <allow-intent href="itms:*" /> <allow-intent href="itms-apps:*" /> </platform> <platform name="android"> <icon src="res/icons/android/icon-36-ldpi.png" density="ldpi" /> <icon src="res/icons/android/icon-48-mdpi.png" density="mdpi" /> <icon src="res/icons/android/icon-72-hdpi.png" density="hdpi" /> <icon src="res/icons/android/icon-96-xhdpi.png" density="xhdpi" /> </platform> <platform name="ios"> <!-- ios 8.0+ --> <!-- iphone 6 plus --> <icon src="res/icons/ios/icon-60-3x.png" width="180" height="180" /> <!-- ios 7.0+ --> <!-- iphone / ipod touch --> <icon src="res/icons/ios/icon-60.png" width="60" height="60" /> <icon src="res/icons/ios/icon-60-2x.png" width="120" height="120" /> <!-- ipad --> <icon src="res/icons/ios/icon-76.png" width="76" height="76" /> <icon src="res/icons/ios/icon-76-2x.png" width="152" height="152" /> <!-- ios 6.1 --> <!-- spotlight icon --> <icon src="res/icons/ios/icon-40.png" width="40" height="40" /> <icon src="res/icons/ios/icon-40-2x.png" width="80" height="80" /> <!-- iphone / ipod touch --> <icon src="res/icons/ios/icon-57.png" width="57" height="57" /> <icon src="res/icons/ios/icon-57-2x.png" width="114" height="114" /> <!-- ipad --> <icon src="res/icons/ios/icon-72.png" width="72" height="72" /> <icon src="res/icons/ios/icon-72-2x.png" width="144" height="144" /> <!-- iphone spotlight , settings icon --> <icon src="res/icons/ios/icon-small.png" width="29" height="29" /> <icon src="res/icons/ios/icon-small-2x.png" width="58" height="58" /> <!-- ipad spotlight , settings icon --> <icon src="res/icons/ios/icon-50.png" width="50" height="50" /> <icon src="res/icons/ios/icon-50-2x.png" width="100" height="100" /> </platform> <platform name="windows"> <icon src="res/icons/windows/square150x150logo.scale-100.png" width="150" height="150" /> <icon src="res/icons/windows/square150x150logo.scale-240.png" width="360" height="360" /> <icon src="res/icons/windows/square30x30logo.scale-100.png" width="30" height="30" /> <icon src="res/icons/windows/square310x310logo.scale-100.png" width="310" height="310" /> <icon src="res/icons/windows/square44x44logo.scale-100.png" width="44" height="44" /> <icon src="res/icons/windows/square44x44logo.scale-240.png" width="106" height="106" /> <icon src="res/icons/windows/square70x70logo.scale-100.png" width="70" height="70" /> <icon src="res/icons/windows/square71x71logo.scale-100.png" width="71" height="71" /> <icon src="res/icons/windows/square71x71logo.scale-240.png" width="170" height="170" /> <icon src="res/icons/windows/storelogo.scale-100.png" width="50" height="50" /> <icon src="res/icons/windows/storelogo.scale-240.png" width="120" height="120" /> <icon src="res/icons/windows/wide310x150logo.scale-100.png" width="310" height="150" /> <icon src="res/icons/windows/wide310x150logo.scale-240.png" width="744" height="360" /> </platform> <platform name="android"> <splash src="res/screens/android/screen-hdpi-landscape.png" density="land-hdpi" /> <splash src="res/screens/android/screen-ldpi-landscape.png" density="land-ldpi" /> <splash src="res/screens/android/screen-mdpi-landscape.png" density="land-mdpi" /> <splash src="res/screens/android/screen-xhdpi-landscape.png" density="land-xhdpi" /> <splash src="res/screens/android/screen-hdpi-portrait.png" density="port-hdpi" /> <splash src="res/screens/android/screen-ldpi-portrait.png" density="port-ldpi" /> <splash src="res/screens/android/screen-mdpi-portrait.png" density="port-mdpi" /> <splash src="res/screens/android/screen-xhdpi-portrait.png" density="port-xhdpi" /> </platform> <platform name="ios"> <splash src="res/screens/ios/screen-iphone-portrait.png" width="320" height="480" /> <splash src="res/screens/ios/screen-iphone-portrait-2x.png" width="640" height="960" /> <splash src="res/screens/ios/screen-ipad-portrait.png" width="768" height="1024" /> <splash src="res/screens/ios/screen-ipad-portrait-2x.png" width="1536" height="2048" /> <splash src="res/screens/ios/screen-ipad-landscape.png" width="1024" height="768" /> <splash src="res/screens/ios/screen-ipad-landscape-2x.png" width="2048" height="1536" /> <splash src="res/screens/ios/screen-iphone-568h-2x.png" width="640" height="1136" /> <splash src="res/screens/ios/screen-iphone-portrait-667h.png" width="750" height="1334" /> <splash src="res/screens/ios/screen-iphone-portrait-736h.png" width="1242" height="2208" /> <splash src="res/screens/ios/screen-iphone-landscape-736h.png" width="2208" height="1242" /> </platform> <platform name="windows"> <splash src="res/screens/windows/splashscreen.scale-100.png" width="620" height="300" /> <splash src="res/screens/windows/splashscreen.scale-240.png" width="1152" height="1920" /> <splash src="res/screens/windows/splashscreenphone.scale-240.png" width="1152" height="1920" /> </platform> </widget>
unfortunately apachecordovatools extension has cordova@6.3.1 included in toolset. however, can tell use globally installed cordova. so, remove <vs:toolsetversion>
entirely, or can choose global cordova
option in config editor ui.
wiki
Comments
Post a Comment