Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

where to find cordova.js in the visual studio 2015 hybrid app

I have installed VS 2015 preview. I am trying to use the Hybrid App javascript template to create a new project. But I do not see any cordova.js in the project. Trying to learn following the sample given here [ http://msdn.microsoft.com/en-us/library/dn832630.aspx ] it refers to referencing the cordova.js file from root of the project. But there is no such file visible. Nor are there any instructions to explicitly import it. What am I missing?

The application does build and show up in Ripple OK. But i am trying to figure out where does cordova.js file reside.

Thanks.

like image 902
SaurabhN Avatar asked Mar 17 '23 14:03

SaurabhN


1 Answers

Cordova.js is added at the build time, after you build the project, you can find the cordova.js at \bld\Ripple\Android\Debug or \bld\Debug\platforms\android\assets\www (in case of Android similarly for different platform).

Therefore when you add reference to cordova.js in index.html, it is picked at run time. That's the reason your app is running fine even though Cordova.js is not present in Visual Studio project directory.

like image 195
Abhishek - MSFT Avatar answered Apr 25 '23 21:04

Abhishek - MSFT