Visual Studio 2015 won't work with Tools For Apache Cordova

前端 未结 4 827
面向向阳花
面向向阳花 2021-01-04 09:46

I did the full installation of VS 2015 Enterprise + Tools for Apache Cordova. When I open or create any project It won\'t build and even show the Ripple Emulator or Device i

相关标签:
4条回答
  • 2021-01-04 09:58

    Started this by globally installing Cordova and then the vs-tac which seemed to be missing (not sure global installation of Cordova is required though). Info from here (https://social.msdn.microsoft.com/Forums/en-US/4f97d8c5-6069-49ee-a065-283741fd483f/unable-to-build-my-first-cordova-app-in-vs-2015?forum=ToolsForApacheCordova):

    npm install -g cordova
    npm install -g "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ApacheCordovaTools\packages\vs-tac"
    

    Then it was giving the following error:

    EXDEV, cross-device link not permitted

    Luckily there is guidance on how to solve this (https://stackoverflow.com/a/30958837/2270404):

    C:\Temp>git clone https://github.com/phonegap/phonegap-plugin-fast-canvas.git
    

    Then go to the project folder and run the following:

    cordova plugin add C:\Temp\phonegap-plugin-fast-canvas\
    

    And it's working!

    0 讨论(0)
  • 2021-01-04 10:13

    We think, we have a workaround for this. Can you try the following solution:

    • Close all VS instances
    • cd "%localappdata%\Microsoft\Phone Tools"
    • rename CoreCon folder
    • Launch VS again.

    Let us know if this fixes the issue?

    0 讨论(0)
  • 2021-01-04 10:14

    To fix This problem close VS first then copy folder vs-tac from

    C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ApacheCordovaTools\Packages\
    

    To

    C:\Users\ASUS S550C\AppData\Roaming\npm\node_modules
    

    Then if you cannot see folder named cordova in new path

    1- open CMD or Termianl and Write

    cd C:\Users\ASUS S550C\AppData\Roaming\npm\node_modules
    npm install -g cordova 
    

    2- Then write

      cd C:\Users\ASUS S550C\AppData\Roaming\npm\node_modules\cordova
        npm install
    

    This will fix the problem

    Note: to use npm you need to install Node.js

    0 讨论(0)
  • 2021-01-04 10:18

    I solved this issue with this steps: 1. Copy vs-tac folder from: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ApacheCordovaTools\Packages\ to the AppData roaming folder.

    1. I opened a VS 2015 Developer Prompt to the AppData\roaming folder where I had copied the vs-tac package and run npm install
    0 讨论(0)
提交回复
热议问题