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

本小妞迷上赌 提交于 2019-11-30 18:31:37
Subhag Oak

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?

orellabac

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

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

Adam Szabo

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!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!