Setting up xamarin

0

I'm learning xamarin and development for mobile. 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 that when I create a new application, I do not have this option. I have already updated the xamarin in my machine and nothing. When I type xamarin in the search field, it shows me several other options but less this one. When I open a Blank App is for Android only. How do I configure or are there other options for me to do that is equivalent to that, ie develop for all three platforms at the same time?

    
asked by anonymous 25.07.2017 / 22:54

1 answer

1

In Visual Studio 2017 the options for creating a project have changed a bit. If you are not using VS2017 I recommend that you download it and use it. Since it's starting, it's best to start right.

Download Visual Studio 2017: Download

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

FromwhatI'venoticed,youwanttodevelopforall3platformsatthesametime.Thesimplestandeasiestway(atleastforme)isthroughXamarin.Forms,whereyoucreatethelayout(XAML)andthecode(C#)ofyourapplicationonlyonceandVisualStudiotakescareofcompilingandgeneratingcodenativetothe3palataformas:Android,iOSandUWP.

Followingthisidea,selectVisualC#/Cross-Platformfromtheleftsidemenu.Afterthat,checktheCrossPlatformApp(Xamarin)optionontherightsideofthemenuandfinallyputanameforyourprojectatthebottomofthewindow.Afterthat,clickOK.

Afterthis,thefollowingscreenwillopen:

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

    
26.07.2017 / 15:05