visual-studio-cordova

Visual Studio Tools for Apache Cordova add a Jar from 3party

家住魔仙堡 提交于 2019-12-11 04:26:13
问题 I'm using Visual Studio Tools for Apache Cordova to develop hybird app,mainly Jquery mobile. And now I'd like to consume a thrid party jar file. Is it possible Visual Studio Tools for Apache Cordova can add a Jar file into my project ? Thank you. 回答1: I've seen devs use the lib folder, in the built application, as a destination for .jar files. This post looks helpful: How to include jar files in phonegap android application? Quoting the answer: <source-file src="libs/mylib.jar" target-dir=

Using bower with Visual Studio Tools for Apache Cordova

浪子不回头ぞ 提交于 2019-12-11 03:28:45
问题 When I create a blank Apache Cordova app, I got a directory structure like: root www bower.json ... From the project root directory, if I run "bower install ionic --save", the bower dependencies were all created in the project root while I expect them to go to www. What is the best way use bower with VSTAC projects? 回答1: You can create a .bowerrc file at the root that has the key directory:'www/bower_components' set, indicating that the files are placed inside www instead of the root. Visual

Typescript compile on save not working in cordova .jsproject - 2015

有些话、适合烂在心里 提交于 2019-12-11 03:13:23
问题 I have Typescript 1.5 beta tools for Visual Studio 2015 installed, and I create a new Cordova Typescript project. The project template includes some .ts files but I cannot get these to compile on save. Strangely if I create a new project using the Html 5 with Typescript template, the app.ts file does compile on save. It's only in this .jsproj cordova project that it ignores TypeScript compilation. Why? I see that they use different targets (for the Html 5 project uses Microsoft.Typescript

How to run commands for Cordova/Ionic in Visual Studio?

こ雲淡風輕ζ 提交于 2019-12-11 01:22:10
问题 I am trying to figure out how do you run all the fancy command line commands when working with Cordova / Ionic in Visual Studio and I cannot really figure it out. I have created Ionic project and it works just fine with what is possible in Visual Studio, but there are things that are not supported (various commands that Ionic or Cordova provide). E.g. I want to run this: ionic serve --lab or this: cordova serve I cannot really figure out where to run this? I tried ordinary command line, but

Multi-device hybrid apps: How to do combine, minify and obfuscate in release and distribution build process?

笑着哭i 提交于 2019-12-11 01:08:27
问题 Is there a good way to combine Javascript/Css files and do minification and obfuscation for the release and distribution builds using the multi-device hybrid apps project type for Visual Studio? I currently use Grunt for executing these tasks, but I'm interested in a complete Visual Studio driven process. 回答1: You can use Grunt/gulp with the TaskRunner Explorer extension for Visual Studio. To make sure your application will exclude the node_modules directory when you'll build it, you'll have

Cordova ripple.js failed to load resource error

半腔热情 提交于 2019-12-10 23:45:54
问题 Created a default project without modifications, no build errors, but it failed to run and showed errors when running Ripple-Nexus(Galaxy). 回答1: As mentioned in here copying your config.xml into your www directory should resolve the ripple.js not found error. Anyway it seems that the Ripple Simulator works well, even if you get the error, so in the end I found myself ignoring it. 来源: https://stackoverflow.com/questions/34512692/cordova-ripple-js-failed-to-load-resource-error

VS + Cordova + WP8 = requirejs load timeout for modules

笑着哭i 提交于 2019-12-10 19:08:47
问题 I am building a windows phone mobile game using Visual Studio 2015 + Cordova. When trying to debug on device I get this error: Unhandled exception at line 8, column 137 in ms-appx-web://net.boardgamesonline.drawit/www/js/libs/require.js 0x800a139e - JavaScript runtime error: Load timeout for modules: sounds,libs/signals.min,config,components/share.... My VS runs on Windows 10 and has everything updated (cordova, sdks, tools..) The same project was built for Android and iOS using Intel XDK and

visual studio 2015 apache cordovo not running in emulator with Blank app project template

╄→尐↘猪︶ㄣ 提交于 2019-12-10 15:55:47
问题 after initiating the Apache cordova Blank application project template using both under Javascript and typescript. When clicking the debug/run in android device emulator, an error popup as shown below: I also did the following because it wasn't able to create java virtual machine by registering this: _JAVA_OPTIONS:-Xmx512M is this a bug or is there a work around? Additional question: how to let visual studio 2015 ask which android device emulator to use (similar to eclipse) rather than using

The 'ApacheCordovaToolsPackage' package did not load correctly

蓝咒 提交于 2019-12-10 15:17:11
问题 I just installed VS 2015 Professional and Tried to install Visual Studio Tools for Apache Cordova, it completed successfully. However, when I try to get to create a new Project for the same, it just gets stuck there. Then if I open a new instance of VS 2015 and go to Tools --> Options --> Apache Cordova, I get following error message: --------------------------- Microsoft Visual Studio --------------------------- The 'ApacheCordovaToolsPackage' package did not load correctly. The problem may

Visual Studio Cordova - can't deploy app

谁说我不能喝 提交于 2019-12-10 14:35:48
问题 I'm using Visual Studio Enterprise 2015 with Cordova Tools. I have simple bootstrapped HTML5 app, and an iMac running the remotebuild agent. I have an iPad connected to my Windows machine with VS, and I'm selecting Debug -> iOS -> Local Device VS seems to successfully post the build request to the iMac, it builds successfully, but then VS output window repeats over and over that "build completed successfully". I can't see how to install my app on the connected iPad - I've installed a