Xamarin Tutorial - Hello World in 10 minutes

Create your app

Create a new Xamarin app:

  1. Open Visual Studio 2019.
  2. Select Create a new project.
  3. Select Mobile from the Project type drop-down.
  4. Select the Mobile App (Xamarin.Forms) template and click Next.
  5. Enter AwesomeApp as the project name and click Create.
  6. Select the Blank template. Ensure Android and iOS are both selected, and click OK.

Android SDK Install

Specific versions of the Android SDK are required to build projects. If your machine is missing the required SDK, you'll see the following prompt while the new project is loading. Click Accept to have the automatic installation begin.

Android SDK Prompt asking user to install specific Android SDK version to build project.

Restore NuGet packages

NuGet is a package manager that will bring in the dependencies of your new app.

The package restore process will start automatically. Wait until the Restored or Ready message appears in the status bar at the bottom left of the screen.

Create a new Xamarin app:

  1. Open Visual Studio 2019 for Mac
  2. Select New Project
  3. Select Multiplatform > App > Blank Forms App and click Next
  4. Enter AwesomeApp as the app name, and click Next
  5. Click Create

Restore NuGet packages

NuGet is a package manager that will bring in the dependencies of your new app.

After your application loads, right click on the AwesomeApp solution and select Restore NuGet Packages

Visual Studio for Mac menu that shows the label Restore NuGet Packages.

Continue