Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
184 views
in Technique[技术] by (71.8m points)

Creating Cordova project using Visual Studio

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 enter image description here what can i do? did do something wrong?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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

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

enter image description here

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. Nuget Package

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

Project


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...