Install specific version of Cordova CLI in Visual Studio 2017

前端 未结 4 1041
囚心锁ツ
囚心锁ツ 2020-12-06 14:46

I need to do some updates to a Cordova app created using Visual Studio 2017 Tools for Apache Cordova (TACO).

The Cordova CLI version listed in the config.xml file is

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-06 15:04

    I had the same error, follow this steps :

    1- If not installed yet, install Node

    2- Install the latest version of cordova or anyother:

    npm install -g cordova
    

    3- Install taco-cli:

    npm install -g taco-cli
    

    4- Configure taco-cli :

    taco remote add ios
    

    (respond a few question, MAC IP, Port,etc...)

    5- in your root project add or edit a file named "taco.json", add inside :

    {
        "cordova-cli": "7.1.0"
    }
    

    Where 7.1.0 correspond to your cordova version (cordova --v)

    6- Try to emulate on your MAC:

    taco emulate ios
    

    You will maybe have an error about platform. Ignore it

    7- Close then open Visual Studio

    8- On Visual Studio open the config.xml UI EDITOR and change the toolset name with

    Global cordova

    9- Build using Visual Studio.

    If it doesn't work, please let me know

提交回复
热议问题