如何使用visual studio中的单个代码开发ios,android,windows phone app [英] How do I develop ios,android,windows phone app using single code from visual studio

查看:73
本文介绍了如何使用visual studio中的单个代码开发ios,android,windows phone app的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用c#代码开发应用程序,它应该在ios和android,windows phone上运行。

我将我的视觉工作室与xamarin集成。

任何人都可以帮助我,

I want to develop app using c# code and it should be run on ios and android,windows phone.
I integrated my visual studio with xamarin.
Can anyone help me in that,

推荐答案

你不能只在VS中做到这一点。



你可以建立一个单页应用程序(SPA)。



SPA是一个HTML / Javascript应用程序,它是单个带有大型Javascript库的HTML页面,用于提供应用程序逻辑。



有一些工具可以使这种方法更易于管理和维护。



我建议查看 AngularJS TypeScript



然后您可以使用可移动的SPA托管框架,例如 PhoneGap / Cordova



在VS内完成开发/测试后。您可以使用PhoneGap提供嵌入SPA的本机包装器。本机包装器提供本机浏览器视图端口,用于在特定移动设备上加载和显示SPA。



通过插件提供对手机硬件功能的访问ins标准化暴露给Javascript的API。这意味着您的SPA可以是跨所有平台的单个流,因为该插件是特定于平台的。



但您仍需要为每个平台构建包平台。



iOS需要MacOSx,xCode和Apple开发者计划的订阅。

WinPhone需要注册MS和Visual Studio

Android需要注册Google和包含Eclipse的ADT(所有这些都需要Java)
You can't do it just in VS.

You can build a Single Page Application (SPA).

An SPA is a HTML/Javascript application which is a single HTML page with a large Javascript library for providing the applications logic.

There are tools out their which make this approach more manageable and maintainable.

I'd suggest looking at AngularJS and TypeScript

You can then use a transportable SPA hosting framework such as PhoneGap/Cordova.

Once you've finished you development/testing within VS. You use PhoneGap to provide native wrappers within which you embed your SPA. The native wrapper provides a native browser view port which is used to load and present your SPA on the specific mobile device.

Access to phone hardware features is provide through Plug-ins which standardise the API exposed to Javascript. This means your SPA can be a single stream across all platforms as the plugin is platform specific.

But you still have to go through the process of building the package for each platform.

iOS requires MacOSx, xCode and a subscription to the Apple developer program.
WinPhone requires registration with MS and Visual Studio
Android required registration with Google and the ADT which include Eclipse (All of which requires Java too)


点击此处 [ ^ ]



Xamarin页面将逐步引导您完成任务!
Click Here[^]

The Xamarin page takes you through it pretty much step by step!


这篇关于如何使用visual studio中的单个代码开发ios,android,windows phone app的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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