设为首页 收藏本站
查看: 1463|回复: 0

[经验分享] Xamarin介绍和Windows环境搭建

[复制链接]

尚未签到

发表于 2016-5-24 08:52:29 | 显示全部楼层 |阅读模式




一,Mono介绍



1,What is Mono



    Novell公司开发的跨平台·NET运行环境,mono是指由Novell公司(由Ximian发起,并由Miguel de lcaza领导的,一个致力于开创·NET在Linux上使用的开源工程。Mono的C #编译器及其相关工具发布于GNU General Public License (GPL)之下,其运行时库发布于GNU Lesser General Public License (LGPL)之下,其类库发布于MIT License之下.这些均是开源协议因此Mono是一个开源软件.



2,What is Xamarin



   Xamarin始创于2011年,旨在使移动开发变得难以置信地迅捷和简单。Xamarin的产品简化了针对多种平台的应用开发,包括iOS、Android、Windows
Phone和MacApp。Xamarin由许多著名的开源社区开发者创立和参与,而且也是Mono项目的主导者——C#与·NET框架的开源、跨平台实现。


    Xamarin现在已经形成了一个完整的体系,目前有Xamarin Studio、Xamarin.Forms、Xamarin for Visual Studio、Xamarin Test Cloud,以及包含前面四个工具的Xamarin Platform。它的目标是 用C#开发iOS、Android和Windows Phone原生应用程序,一次开发,多平台交付。


Xamarin Studio是一个用C#语言开发跨平台应用的集成开发环境,它和iOS以及Android SDK紧密整合。Xamarin Studio提供了很多现代开发所需功能,包括代码完成、调试器、打包和发布应用(支持通过TestFlight发布应用程序)。对于Android,Xamarin还包含了自己的UI生成器(对于iOS,则使用苹果Xcode的UI生成器),此外还集成了Git和Subversion。开发者可以使用Xamarin Studio在模拟器和真机上对移动应用进行测试和bug调试。Xamarin
Studio能够完美支持Windows和Mac。


Xamarin还提供了for vs2010 vs2012的插件,这个是比较吸引人的地方。该插件可以很好地与微软的生态系统集成,可以在Mac OS机器的仿真器上进行远程调试和测试。在Mac OS上,因为iOS的现有限制,面向iOS的C#代码会通过AOT编译技术直接编译为ARM汇编代码。而在Android上,应用程序会转换为IL,启动时再进行JIT编译。



二,Xamarin installed in Windows



2.0 环境配置以及效果图



2.0.1 安装环境:



win7 旗舰版 64位、VS2010 。



2.0.2 效果图:



安装完成后 Xamarin Studio IDT开发工具界面


http://wiki.cloudhua.com/download/thumbnails/6292388/image2015-3-16%2017%3A22%3A12.png?version=1&modificationDate=1426497749000&api=v2



2.1 自动安装



  从Xamarin官网下载http://xamarin.com/download安装包文件XamarinInstaller.exe,双击运行静默安装。



2.2 手动安装



2.2.1 下载需求



  根据官方需求文档:http://xamarin.com/installer_assets/v3/Windows/Universal/InstallationManifest.xml需要下载以下文件。


  JAVA JDK:http://download.xamarin.com/Installer/MonoForAndroid/jdk-7u71-windows-i586.exe


  Android
SDK:
https://dl.google.com/android/installer_r24.0.2-windows.exe


  GTK:http://download.xamarin.com/GTKforWindows/Windows/gtk-sharp-2.12.26.msi


  Xamarin VisualStudio:http://download.xamarin.com/XamarinforVisualStudio/Windows/Xamarin.VisualStudio_3.11.445.msi


  Xamarin Studio:http://download.xamarin.com/studio/Windows/XamarinStudio-5.9.0.431-0.msi


  Android NDK:http://dl.google.com/android/ndk/android-ndk-r10d-windows-x86_64.exe


   


  附Android SDK开发包国内下载地址:


   http://www.cnblogs.com/bjzhanghao/archive/2012/11/14/android-platform-sdk-download-mirror.html


   http://blog.csdn.net/gyming/article/details/8168166/



2.2.2 安装步骤



1.2,安装JDK:jdk-7u45-windows-x64.exe


1.2.1 到oracle官方下载 jdk-7u45-windows-x64.exe。


1.2.2 配置JAVA环境变量。JAVA_HOME:C:\Program Files (x86)\Java\jdk1.7.0_71,添加环境变量CLASSPATH:%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar。修改环境变量Path:%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;


1.3,安装Android SDK:


1.3.1 到developer.android.com 网站 下载installer_r24.0.2-windows.exe


       http://dl.google.com/android/repository/tools_r24.2-windows.zip


    1.3.2 配置环境变量。Android SDK 环境变量。修改环境变量 PATH:D:\eclipse\adt-bundle-windows-x86_64-20140702\sdk\tools


  1.4,安装Xamarin Studio


  1.5,安装NDK


  1.6,安装GTK


  1.7,安装Xamarin for Visual Studio



2.3 提示文件信息如下:



    It was not possible to complete an automatic installation. This might be due to a problem with your network, proxy servers or an unsolvable installation conflict. At this point, you can continue the installation by manually downloading and installing the independent pieces. The list below shows each component that you need to install.
Java JDK
Download the Java JDK v1.7.0 installer to any directory on your disk, double-click the downloaded file and follow the on-screen instructions.
It is very important to install the 32-bit version of Java JDK even if you're using 64-bit Windows. It is also important that Java JDK v1.6 is installed (although it is fine to have Java JDK 1.7 or newer installed at the same time)
Android SDK
Download the Android SDK for Windows version 22.0.0 to any directory on your disk and double-click it to start main SDK installation process. You can install the SDK either system wide or only for your account. You will need to point your IDE to that location after the installation is completed.
Click here in order to start the Android SDK Manager application. In the GUI make sure the following components are installed or selected for installation:
Android SDK Tools
Android SDK Platform-tools
Android SDK Build-tools
Android API 7
Android API 8
Android API 10
Android API 12
Android API 14
Once all the required components are selected (you can select others as well, if you wish) start the installation. Click here to open target dir
Download the Android NDK for Windows version r8d to any directory on your disk and double-click it to start the NDK installation.
When the Android SDK installation is finished you might want to start the Android Emulator Manager and create as many emulator images as you might need for your development. This step can be performed at any time, on an as-needed basis.
GTK#
Download the GTK# v2.12.25 installer to any directory on your disk, double-click the downloaded file and follow the on-screen instructions.
Xamarin Studio
Download the Xamarin Studio v5.7.1 installer to any directory on your disk, double-click it and follow the on-screen instructions.
Xamarin
Download the Xamarin v3.9.289 installer to any directory on your disk, double-click it and follow the on-screen instructions.
After installation, restart your Windows workstation to make sure all of the installed system services are running.











运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-220883-1-1.html 上篇帖子: VisionMobile:2012年移动开发者经济报告(四):一、新格局看似尘埃落定(下) 下篇帖子: windows下搭建apache+php+mysql
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表