Creating An Xamarin Project In Visual Studio 2019 Using Mac


In this article, I have explained about creating a sample Xamarin project and run the android/iOS app using Visual Studio 2019 using mac.

  • Faster Iteration with Xamarin Hot Restart
  • Android Apply Changes
  • Multi-Target Reload for XAML Hot Reload
  • Android Start-Up Performance
  • XAML Previewer for Xamarin.Forms

Xamarin Hot Restart

Test changes made to your app including multi-file code edits resources and references while using a much faster build and deploy cycle. With Hot Restart debug your iOS app built with Xamarin. Forms on a device connected to your Windows machine allowing for a much faster inner development loop.

Android Apply Changes

Quickly see changes made to your Android resource files such as layouts, drawable on an Android device or emulator without requiring the application to be restarted.

Multi-Target Reload for XAML Hot Reload

Reload changes made to XAML instantly on multiple targets at the same time for rapid UI iteration, such as an iOS Simulator and Android emulator.

Faster Android Start-up

Generate your own custom profiles using start-up tracing in your Android application providing improved application start-up with a minimal increase in app size.

XAML Previewer Opt-Out

Prefer runtime tooling over visual tooling when building Xamarin.Forms apps. Disable the XAML Previewer in the Xamarin settings in Tool -> Options.

Step 1

Open Visual Studio 2019 in your mac machine and see the left side top corner two options which are Open and New. You can click New option to create a new project and Open option to open an existing Xamarin project.

Step 2

After clicking New option, you will navigate to the below screen and on the left side, you will see the option Multiplatform and click App->Blank App->Next.

Step 3

After clicking Next option, you will navigate to the below screen and Configure your blank app name with Organization identified and click Next button

Step 4

After clicking Next option, you will navigate to the below screen and see the created Xamarin project with PCL-Portable class library, XamarinSample.Android, XamarinSample.iOS.

Step 5

You can select the Debug mode either Android or iOS and need to set up your project which you want and you can run selected app via Emulator/Simulator/Release devices.



Hopefully, this article has given you sufficient information for you to create Xamarin project and run the app on both Android/iOS. Feel free to leave a comment if you would like me to further elaborate on anything within this article.