Setting up the Xamarin

Asked

Viewed 106 times

0

I’m learning Xamarin and mobile development. I have seen several examples of how to set up a small application and I see that practically everyone starts like this: Blank App (Xamarin.Forms Portable) or in Portuguese. It turns out, when I create a new application, I don’t have this option. I’ve already updated Xamarin on my machine and nothing. When I type Xamarin in the field for search, it shows me several other options, but less this. When I appear a Blank App is for Android only. How to set up or there are other options for me to do that is equivalent to this, ie, develop for the three platforms practically at the same time?

  • Which Visualstudio you are using?

  • In Visualstudio 2017 these options have changed. I’ll put an answer that can help you.

1 answer

1


In Visual Studio 2017 the options for creating a project changed a little. If you are not using VS2017 I recommend you download it and use it. Since you are starting, it is best to start the right way.

Download Visual Studio 2017: Download

Inside Visual Studio, click File/New/Project or File/New/Project. The following screen will appear:

inserir a descrição da imagem aqui

From what I understand, you want to develop for the 3 platforms at the same time. The simplest and easiest way (at least for me) is through Xamarin.Forms, where you create the layout (XAML) and code (C#) of your app only once and Visual Studio takes care of compiling and generating code native to the 3 palates: Android, iOS and UWP.

Following this idea, select Visual C#/Cross-Platform from the left side menu. Then, check the Cross Platform App (Xamarin) option on the right side of the menu and finally, put a name for your project at the bottom of the window. Once done, click OK.

inserir a descrição da imagem aqui

After that, the following screen will open:

inserir a descrição da imagem aqui

Note that now you have the option to select the Blankapp that before did not see. Here then, select Blankapp, below select Xamarin.Forms and next choose the strategy of sharing code. Finally, click OK and your project will be created.

  • I did this, but using the VS2015. I do have the 2017, I think I will prefer to use it for these projects.

  • I also wore 2015, but when I saw the 2017 launch event, I switched immediately. It’s much better optimized for mobile development.

  • there is some kind of VM for MAC running on windows to test the IOS Apps?

  • you need at least one physical MAC computer to work

  • Xamarin Test Cloud, I can use MAC on this platform?

  • I don’t know for sure, because I’ve never used it. But I think so.

Show 1 more comment

Browser other questions tagged

You are not signed in. Login or sign up in order to post.