使用Visual Studio创建Cordova项目 [英] Creating Cordova project using Visual Studio

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

问题描述

我已安装:




  • -visual studio 2015

  • -cordova from视觉工作室

  • -SDK android(并安装了版本25)-已安装Java SDK 1.8.121



现在,我想创建一个新的Cordova项目并从Android运行它,当我从Visual Studio (新项目-> javascript-> cordova)
创建一个新项目时,它会创建一个目录并在解决方案项目没有文件,但是如果我显示隐藏文件,则会出现WWW目录,并且它无法运行并给我一个错误:启动项目无法启动



此处在cordova
的工具选项中是什么
我该怎么办?
做错了吗?

解决方案

您安装的Cordova工具有问题或未安装。更新或重新安装。



Microsoft官方网站:



在Visual Studio 2015上使用Cordova的一些技巧。



首先:
重要的是,Visual Studio至少要安装Update 2。 (当前更新版本为Update 3)。
您还必须已经安装了适用于Apache Cordova的Visual Studio工具(更新10)
您可以在帮助上进行验证->关于Microsoft Visual Studio



第二个:
必须创建一个JavaScript-> Blank App(Apache Cordova)
它将创建一个空白项目。



第三条:
如果错误仍然存​​在,请清除Cordova缓存并运行相关性检查:工具->选项-> Apache Cordova的工具



第四步:
科尔多瓦,使用Nuget安装 IonicVS2015,此软件包将帮助您安装和配置Ionic和Angular。



第五:
您也可以使用Cordova Comand工具创建项目并将其导入视觉工作室。它将创建一个文件.jsproj




i installed :

  • -visual studio 2015
  • -cordova from visual studio
  • -SDK android (and installed version 25) -installed Java SDK 1.8.121

Now, i want to create a new Cordova project and run it from Android, when i create a new project from Visual studio (new project ->javascript->cordova) it creates a directory and in the solution project there are no file, but if i show hidden files the WWW direcotry appears, and it cannot run and gives me an error :"the startup project cannot be launched"

here what in the tool-options of cordova what can i do? did do something wrong?

解决方案

There is a problem with your Cordova Tools Installed or it is not installed. UPDATE or REINSTALL.

Microsoft Oficial Site: https://taco.visualstudio.com/

Some tips to work with Cordova with Visual Studio 2015.

First: It is important that your Visual Studio is at least with Update 2 installed. (The current update version is Update 3). You also must have installed Visual Studio Tools for Apache Cordova (Update 10) You can Verify on Help -> About Microsoft Visual Studio

Second: You must create a JavaScript -> "Blank App (Apache Cordova)" It will create a blank project.

Third: If the error persist Clear Cordova Cache and Run Dependency Check: Tools -> Options -> Tools For Apache Cordova

Fourth: If you are beginning with Cordova, install "IonicVS2015" using Nuget, this package will help you installing and configuring Ionic and Angular.

Fifth: You can also create a project Using Cordova Comand Tools and Import the Project in Visual Studio. It will create a file .jsproj

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

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