简体   繁体   English

如何在visual studio 2013中安装或使用Xamarin

[英]how to install or use Xamarin with visual studio 2013

我已安装vs13并下载了Xamarin但我不知道如何在Visual Studio 2013中使用Xamarin。任何人都可以解释安装和使用visual studio 2013的整个过程

Once the installation is successful, Start a new instance of Visual Studio 2013 and got to File-> New -> Project , where you can see the section Android under Visual C# Templates. 安装成功后,启动Visual Studio 2013的新实例并进入File-> New - > Project ,在那里可以看到Visual C#Templates下的Android部分。

在此输入图像描述

Select Blank App (Android) Template, provide a proper name and location and then Click OK. 选择Blank App(Android)Template,提供正确的名称和位置,然后单击OK。 A default application is created in the solution explore with the following folder structure. 在解决方案探索中使用以下文件夹结构创建默认应用程序。

在此输入图像描述

Lets have a look what is there inside. 让我们来看看里面有什么。 Resource folder contains all the resources we create in the application like icons, axml files and importantly all the id's (identifiers) that we assign to a controls in the axml page. 资源文件夹包含我们在应用程序中创建的所有资源,如图标,axml文件,以及我们分配给axml页面中控件的所有id(标识符)。 So whenever a developer wants to access a control through its id he has to use like the following ? 因此,每当开发人员想要通过其ID访问控件时,他必须使用如下所示? 1 Resource.Id.HelloWorldText Where HelloWorldText is the id that is assigned to my TextView in my Main.axml file, which is explained below. 1 Resource.Id.HelloWorldText其中HelloWorldText是我的Main.axml文件中分配给我的TextView的id,如下所述。 MainActivity.cs is nothing but a Page in windows world, so whenever you come across a file called activity then just remember it is a Page. MainActivity.cs只不过是Windows世界中的一个页面,所以每当你遇到一个名为activity的文件时,就会记住它是一个Page。

The MainActivity class contains an Attribute called Activity and has properties called Label, MainLauncher and Icon. MainActivity类包含一个名为Activity的属性,并具有名为Label,MainLauncher和Icon的属性。 Label property specified the name of the application and here the applications is called as ANDROID_APP. Label属性指定了应用程序的名称,此处应用程序称为ANDROID_APP。 MainLauncher property specifies whether the current activity will be used as the Main Activity for the application, it is like the First page to be executed in the application. MainLauncher属性指定当前活动是否将用作应用程序的主活动,它类似于在应用程序中执行的第一页。 Icon property specifies the icon for the Application. Icon属性指定应用程序的图标。

For Complete tutorial refer here 有关完整教程,请参阅此处

For Visual Studio 2013, you may need the Xamarin.VisualStudio installer instead of the VS Tools installer. 对于Visual Studio 2013,您可能需要Xamarin.VisualStudio安装程序而不是VS Tools安装程序。

If you reach out to contact@xamarin.com we can send you a link to download this. 如果您联系contact@xamarin.com,我们可以向您发送下载链接。

There are a range of details guides provided in the documentation. 文档中提供了一系列详细信息指南。 The best place to start is here: 最好的起点是:

https://developer.xamarin.com/guides/cross-platform/getting_started/ https://developer.xamarin.com/guides/cross-platform/getting_started/

登录Xamarin站点 - >单击右上角的名称 - >仪表板 - >下载 - >下载适用于Windows的Xamarin - >安装下载的文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM