Mobile Development with .NET
eBook - ePub

Mobile Development with .NET

Build cross-platform mobile applications with Xamarin.Forms 5 and ASP.NET Core 5, 2nd Edition

  1. 572 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Mobile Development with .NET

Build cross-platform mobile applications with Xamarin.Forms 5 and ASP.NET Core 5, 2nd Edition

About this book

A mobile applications development masterclass for.NET and C# developers

Key Features

  • Uncover the new features and capabilities of the.NET 5 framework in this updated and improved second edition
  • Optimize the time required to develop highly performant cross-platform applications
  • Understand the architectural patterns and best practices for mobile application development

Book Description

Are you a.NET developer who wishes to develop mobile solutions without delving into the complexities of a mobile development platform? If so, this book is a perfect solution to help you build professional mobile apps without leaving the.NET ecosystem.

Mobile Development with.NET will show you how to design, architect, and develop robust mobile applications for multiple platforms, including iOS, Android, and UWP using Xamarin, .NET Core, and Azure.

With the help of real-world scenarios, you'll explore different phases of application development using Xamarin, from environment setup, design, and architecture to publishing. Throughout the book, you'll learn how to develop mobile apps using Xamarin 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 Active Directory, Azure Functions. As you advance, you'll create data stores using popular database technologies such as Cosmos DB and data models such as the relational model and NoSQL.

By the end of this mobile application development book, you'll be able to create cross-platform mobile applications that can be deployed as cloud-based PaaS and SaaS.

What you will learn

  • Discover the latest features of.NET 5 that can be used in mobile application development
  • Explore Xamarin.Forms Shell for building cross-platform mobile UIs
  • Understand the technical design requirements of a consumer mobile app
  • Get to grips with advanced mobile development concepts such as app data management, push notifications, and graph APIs
  • Manage app data with Entity Framework Core
  • Use Microsoft's Project Rome for creating cross-device experiences with Xamarin
  • Become well-versed with implementing machine learning in your mobile apps

Who this book is for

This book is for ASP.NET Core developers who want to get started with mobile development using Xamarin and other Microsoft technologies. Working knowledge of C# programming is necessary to get started.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, weโ€™ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere โ€” even offline. Perfect for commutes or when youโ€™re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Mobile Development with .NET by Can Bilgin in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in C#. We have over one million books available in our catalogue for you to explore.

Information

Section 1: Understanding .NET

The fundamental requirement for implementing cross-platform applications with Xamarin is to understand the .NET ecosystem and the supporting Microsoft stack. This part of the book specifically walks you through the evolution of .NET and how it can efficiently be utilized for mobile projects.
This section comprises the following chapters:
  • Chapter 1, Getting Started with .NET 5.0
  • Chapter 2, Defining Xamarin, Mono, and .NET Standard
  • Chapter 3, Developing with Universal Windows Platform

Chapter 1: Getting Started with .NET 5.0

.NET Core (previously known as .NET vNext) is the general umbrella term used for Microsoft's cross-platform toolset that aims to solve the shortcomings of centralized/machine-wide frameworks (classic .NET Framework) by creating a portable, platform-agnostic, modular runtime and framework. This decentralized development platform, which is replacing the classic .NET Framework starting with v5.0, allows developers to create applications for multiple platforms using the common .NET base class libraries (implementation of the .NET standard), as well as various runtimes and application models, depending on the target platforms.
This chapter will give you a brief introduction to the new .NET Framework while explaining different tiers of the .NET Core infrastructure. The combination of .NET Core, .NET Standard, and Xamarin is the key to cross-platform projects and opens many doors that were previously only available to Windows developers. The ability to create web applications that can run on Linux machines and containers, and the implementation of mobile applications that target iOS, Android, Universal Windows Platform (UWP), and Tizen, are just a couple of examples designed to emphasize the capabilities of this cross-platform approach.
In this chapter, we will analyze cross-platform development tools and frameworks for mobile applications and take an initial look at .NET Core development.
The following sections will guide you through getting started with .NET 5.0:
  • Exploring cross-platform development
  • Understanding .NET Core
  • Developing with .NET 5.0

Technical Requirements

You can find the code used in this chapter through the following GitHub link:https://github.com/PacktPublishing/Mobile-Development-with-.NET-Second-Edition/tree/master/chapter01/src.

Exploring cross-platform development

The term cross-platform application development refers to the process of creating a software application that can run on multiple operating systems. In this book, we will not try to answer the question of why, but how to develop cross-platform applications โ€“ more specifically, we will try to create a cross-platform application using the toolset provided by Microsoft and .NET Core.
Before we start talking about .NET Core, let's take a look at the process of developing an application for multiple platforms. Faced with the cross-platform requirement, the product team can choose multiple paths that will lead the developers through different application life cycles.
Throughout this book, we will have hypothetical user stories defined for various scenarios. We will start with an overall user story that underlines the importance of .NET Core:
"I, as a product owner, would like to have my consumer app running on iOS and Android mobile platforms, as well as Windows, Linux, and macOS desktop runtimes, so that I can increase my reach and user base."
In order to meet these demands, we can choose to implement the application in several different ways:
  • Fully native applications
  • Hybrid applications
  • Cross-platform
Let's take a look at each of these methods.

Developing fully native applications

Following this path would create probably the most performant application, with increased accessibility to platform APIs for developers. However, the development team for this type of development would require a wider range of skills so that the same application can be created on multiple platforms. Development on multiple platforms would also increase the developer hours that need to be invested in the application.
Considering the scenario presented in the previous section, we would potentially need to develop the client application in Cocoa and CocoaTouch (macOS and iOS), Java (Android), .NET (Windows), and C++ (Linux), and finally build a web service infrastructure using another development platform of our choice. In other words, this approach is, in fact, implementing a multi-platform application rather than a cross-platform one.

Hybrid applications

Native hosted web applications (also known as hybrid applications) are another popular choice for (especially mobile) developers. In this architecture, a responsive web application would be hosted on a thin native harness on the target platform. The native web container would also be responsible for providing access to the web runtime on native platform APIs. These hybrid applications wouldn't even need to be packaged as application packages, but as Progressive Web Apps (PWAs) so that users can access them directly from their web browsers. While the developmen...

Table of contents

  1. Mobile Development with .NET
  2. Second Edition
  3. Preface
  4. Section 1: Understanding .NET
  5. Chapter 1: Getting Started with .NET 5.0
  6. Chapter 2: Defining Xamarin, Mono, and .NET Standard
  7. Chapter 3: Developing with Universal Windows Platform
  8. Section 2: Xamarin and Xamarin.Forms
  9. Chapter 4: Developing Mobile Applications with Xamarin
  10. Chapter 5: UI Development with Xamarin
  11. Chapter 6: Customizing Xamarin.Forms
  12. Section 3: Azure Cloud Services
  13. Chapter 7: Azure Services for Mobile Applications
  14. Chapter 8: Creating a Datastore with Cosmos DB
  15. Chapter 9: Creating Microservices Azure App Services
  16. Chapter 10: Using .NET Core for Azure Serverless
  17. Section 4: Advanced Mobile Development
  18. Chapter 11: Fluid Applications with Asynchronous Patterns
  19. Chapter 12: Managing Application Data
  20. Chapter 13: Engaging Users with Notifications and the Graph API
  21. Section 5: Application Life Cycle Management
  22. Chapter 14: Azure DevOps and Visual Studio App Center
  23. Chapter 15: Application Telemetry with Application Insights
  24. Chapter 16: Automated Testing
  25. Chapter 17: Deploying Azure Modules
  26. Chapter 18: CI/CD with Azure DevOps
  27. Other Books You May Enjoy