Book Image

Hands-On Mobile Development with .NET Core

By : Can Bilgin
Book Image

Hands-On Mobile Development with .NET Core

By: Can Bilgin

Overview of this book

.NET Core is the general umbrella term used for Microsoft’s cross-platform toolset. Xamarin, used for developing mobile applications, is one of the app model implementations for .NET Core infrastructure. In this book, you'll learn how to design, architect, and develop attractive, maintainable, and robust mobile applications for multiple platforms, including iOS, Android, and UWP, with the toolset provided by Microsoft using Xamarin, .NET Core, and Azure Cloud Services. This book will take you through various phases of application development using Xamarin, from environment setup, design, and architecture to publishing, with the help of real-world scenarios. Throughout the book, you'll learn how to develop mobile apps using Xamarin, Xamarin.Forms, and .NET Standard. You'll even be able to implement a web-based backend composed of microservices with .NET Core using various Azure services including, but not limited to, Azure App Services, Azure Active Directory, Notification Hub, Logic Apps, Azure Functions, and Cognitive Services. The book then guides you in creating data stores using popular database technologies such as Cosmos DB, SQL, and Realm. Finally, you will be able to set up an efficient and maintainable development pipeline to manage the application life cycle using Visual Studio App Center and Visual Studio Services.
Table of Contents (26 chapters)
Title Page
Copyright and Credits
About Packt
Contributors
Preface
Index

Hosting the services


Since our web implementation makes use of ASP.NET Core, we are blessed with multiple deployment and hosting options that span over Windows and Linux platforms. 

Azure Web App for App Service

At this point, without any additional implementation or configuration, our microservices are ready for deployment and they can already be hosted on Azure Cloud as fully managed App Services. In order to deploy the service as an App Service, you can use Visual Studio Azure extensions, which allows you to create a publish profile, as well as the target hosting environment.

Let's see how we can do this::

  1. Right-click on the project to be deployed. You will see the Pick a publish target selection window:

For a complete managed hosting option, we can choose App Service or App Service Linux options and continue to create a new App Service.

  1. If we were to choose the App Service option, the application would be hosted on the Windows platform with a full .NET Framework profile, whereas the Linux...