Book Image

.NET Standard 2.0 Cookbook

By : Fiqri Ismail
Book Image

.NET Standard 2.0 Cookbook

By: Fiqri Ismail

Overview of this book

The .NET Standard is a standard that represents a set of APIs that all .NET platforms have to implement, making it easy for developers to access and use one common library for their development needs. This book begins with a quick refresher, helping you understand the mechanics of the new standard and offering insight into how it works. You’ll explore the core library concepts, such as working with collections, configurations, I/O, security, and multithreading. You’ll explore the iOS and Android libraries of Xamarin and we’ll guide you through creating a .NET Standard 2.0 library, which you’ll use with both Android and iOS applications. In the final chapters, you’ll learn the various debugging and diagnostics tools to deliver quality libraries and create a NuGet package of the .NET Standard 2.0 library. By the end of this book, you’ll be able to expand your current workflow to various .NET flavors and have the essential skills to create a .NET Standard 2.0 library from scratch to package and deliver it to the world.
Table of Contents (18 chapters)
Title Page
Copyright and Credits
Packt Upsell
Contributors
Preface
Index

Hello Android – Creating a Xamarin Android app


In this recipe, we will be looking at support for Android-based applications in Visual Studio for Mac. We will be looking at an Android project, setting up a solution for it, and checking for all the bits and pieces required.

Getting ready

Make sure you have installed Visual Studio for Mac for your macOS system. If not, follow the Installing Visual Studio for Mac and preparation recipe, which shows you how to install it.

How to do it...

  1. Open Finder.
  2. Click Applications in the left-hand pane.
  1. Now, double-click on the Visual Studio icon:

Visual Studio

  1. Click on the New Project button.
  2. In the Choose a template for your project dialog box, scroll down till you reach the other section.
  1. Select Miscellaneous and, under Generic, select Blank Solution:

  1. Now, click the Next button.
  1. In the Solution Name: textbox, type Chapter9.Xamarin. Also make sure you have selected a proper location:
  1. Now, click Create.
  2. Now, the Solution Explorer should look like this:

  1. Now, control (...