How to add Apache Cordova in Visual Studio 2015 ASP.NET MVC project

梦想与她 提交于 2020-02-21 04:52:19

问题


I want to create a project for multiple target systems, a web application and a hybrid mobile app using a common ASP.NET back-end. As far I know it's possible to create now a hybrid mobile app using the Apache Cordova Apps template in Visual Studio 2015. I'm also familiar with ASP.NET MVC. Is it possible to add Apache Cordova and Angular to an ASP.NET MVC project to enable also mobile views, so it can be also tested and deployed to any mobile platforms? (I'd prefer to use ASP.NET MVC instead of Web API)

If no, is it possible to extend the Apache Cordova Apps project with ASP.NET Web Application for back-end to reach the same goals?

Are any samples available, which demonstrate the project structure for?


回答1:


You should open a different Cordova project, MVC is server side and cordova is client side. I suggest you try the ionic template or the onsen ui. You can run this code on a browser no worries. check this out: http://taco.visualstudio.com/en-us/docs/tutorial-ionic/




回答2:


You might want to read this article on hosted apps for more info: http://taco.visualstudio.com/en-us/docs/create-a-hosted-app/



来源:https://stackoverflow.com/questions/34029859/how-to-add-apache-cordova-in-visual-studio-2015-asp-net-mvc-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!