▶Book Description
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.
▶What You Will Learn
⦁ Create a .NET Standard 2.0 library
⦁ Use System.IO within the .NET Standard 2.0
⦁ Make use of your legacy .NET libraries with the new .NET Core standard
⦁ Explore the thread support to create a multithreaded .NET Standard 2.0 library
⦁ Create a .NET Standard 2.0 library and use it with an Android and iOS application
⦁ Implement various Visual Studio 2017 diagnostics and debugging tools
⦁ Create a NuGet Package and submit the package to the NuGet Package Manager
⦁ Use Visual Studio 2017 azure tools to deploy the application to Azure
⦁ Test and deliver a .NET Standard 2.0 library
▶Key Features
⦁ Write code once and share within .NET ecosystem in Windows, Linux and macOS
⦁ Give your .NET Libraries a common framework in cloud and on premise with the latest .NET Standard 2.0
⦁ Build a wide range of applications from Mobile with Xamarin to Web with ASP.NET
▶Who This Book Is For
This book is for developers who need to get in touch with the new .NET Standard 2.0 Library. If you have a basic knowledge of C# and what a library can do to your code, that's enough to understand this book. Also, if you are a developer who writes third-party libraries, this will give you a fair idea of what .NET Standard 2.0 Library is and how you can cater to various .NET based platforms in Windows, Linux, and macOS using it.
▶What this book covers
⦁ Chapter 1, Back to Basics, gives an overview of where it all began for the starters trying to build their first .NET based class library. It talks about the problems with this approach. Getting started with a simple project and using it with a console application and a classic Windows based application, the chapter talks about the issues with the current approach of libraries available. It introduces readers to .NET Standard 2.0 and its versions. How to create the first .NET Standard 2.0 library and use it with various .NET flavors such as .NET Framework and .NET Core applications is covered.
⦁ Chapter 2, Primitives, Collections, LINQ, and More, explores the Core of .NET Standard 2.0. It talks about Primitives, Collections, Reflection, and LINQ. The areas supported so far are covered. It makes use of features among different flavors of .NET Framework.
⦁ Chapter 3, Working with Files, provides an explanation of System.IO and System.Security within the .NET Standard 2.0 and the usage of read write operations using the filesystem. Also, it introduces usage in cross-platform versions of .NET Core in Ubuntu and macOS.
⦁ Chapter 4, Functional Programming, introduces functional programming capabilities in C# and how to use them in .NET Standard 2.0 Library.
⦁ Chapter 5, XML and Data, explains the usage of System.XML and System.Data within .NET Standard 2.0 for creating XML Documents and the usage of Data Tables.
⦁ Chapter 6, Exploring Threading, talks about Thread support for creating a multithreaded .NET Standard 2.0 library. This is in addition to the usage of Tasks as asynchronous capabilities of C# within the library.
⦁ Chapter 7, Networking, focuses on the usage of System.Net within .NET Standard 2.0. It dives into Sockets, Http, and Mail and how to use them in a .NET Standard Library 2.0.
⦁ Chapter 8, To iOS with Xamarin, outlines creating a simple mobile-based application using Visual Studio for Mac mobile iOS tools. The chapter guides through to create a .NET Standard 2.0 library and use it with the built iOS application.
⦁ Chapter 9, To Android with Xamarin, takes you through creating a simple mobile-based application using Visual Studio for Mac and Android tools. It showcases how to create a .NET Standard 2.0 library and use it with the built Android application.
⦁ Chapter 10, Let's Fine-Tune Our Library, demonstrates how to fine-tune .NET Standard 2.0 library using Debugging tools and Diagnostics tools. Also, it helps you capture exceptions and ensure that the end user has a solid experience using our .NET Standard Library 2.0.
⦁ Chapter 11, Packaging and Delivery, discusses how to deliver a completed .NET Standard 2.0 Library to the world. How to use NuGet package manager, creating a package, and delivering it is covered.
⦁ Chapter 12, Deploying, informs how to create a .NET Standard Library 2.0, use it with ASP.NET Core web applications, and deploy it to Azure Cloud.