安装插件到Visual Studio Cordova项目 [英] Installing Plugins to Visual Studio Cordova project

查看:693
本文介绍了安装插件到Visual Studio Cordova项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个新的空白cordova项目,我想安装一个插件,



http://plugreg.com/plugin/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin



我试过


  1. 打开cmd

  2. 浏览到包含.sln文件的应用程序文件夹

  3. 使用npm安装cordova

  4. 运行'cordova插件添加 https://github.com/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin.git '

我收到以下错误,



当前工作目录不是基于Cordova的项目。



Visual Studio工具为Apache Cordova CPT3.0添加了一个功能,添加了一个新的功能,自定义插件,现在你可以使用config.xml从Git中添加插件。



你可以获得更多的细节来安装Visual Studio Tools for Apache Cordova CPT3.0 此处。 CPT3.0需要卸载CPT2.0并在安装CPT3.0之前安装Visual Studio Update 4.




I have a new blank cordova project that I would like to install a plugin into,

http://plugreg.com/plugin/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin

I've tried the following,

  1. open up cmd
  2. browse to application folder, containing .sln file
  3. install cordova using npm
  4. run 'cordova plugin add https://github.com/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin.git'

I receive the following error,

'Current working directory is not a Cordova-based project.'

Any idea how I get this to work, assuming that I can that is?

解决方案

Visual Studio Tools for Apache Cordova CPT3.0 added feature to add custom plugin, now you can use config.xml to add plugin from Git.

You can get more detail to install Visual Studio Tools for Apache Cordova CPT3.0 here. CPT3.0 requires to uninstall CPT2.0 and install Visual Studio Update 4 before installing CPT3.0

这篇关于安装插件到Visual Studio Cordova项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆