Book description
Get the most out of .NET framework using standard libraries and create a .NET Standard 2.0 library from scratch
About This Book- 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
This book is for .NET developers who are looking to build dynamic applications with the latest .NET Standard. C# knowledge is required.
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
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.
Style and approachA recipe-based approach to help you get the most out of the .NET Standard 2.0 Library that can be implemented to all the .NET Platforms
Table of contents
- Title Page
- Copyright and Credits
- Packt Upsell
- Contributors
- Preface
-
Back to Basics
- Technical requirements
- Introduction 
- Creating a C#-based console application
- Creating a C# class library 
- Creating a classic Windows-based application to use the library
- Creating a WPF-based application to use the library 
- Hello Universe – My first .NET Standard class library
- Creating a Windows console-based application to use the library
- Creating an ASP.NET Core-based web application to use the library
-
Primitives, Collections, LINQ, and More
- Technical requirements
- Introduction
- Building a .NET Standard 2.0 library that uses primitives
- A .NET console application to use the library
- Creating collections
- A WPF application to use the library
- Describing our library with Reflections
- A .NET Core console application to use the library
- Building a .NET Standard 2.0 library that uses LINQ
- An ASP.NET MVC application to use the library
-
Working with Files
- Technical requirements
- Introduction
- Setting up .NET Core in Ubuntu
- Creating a log as text
- Creating an ASP.NET Core application in Ubuntu to use the library
- Setting up .NET Core in macOS
- Reading from a comma separated (CSV) text file
- Creating a .NET Core console application in macOS to use the library
- Compressing? Why not?
- Creating a classic Windows application to use the library
- Encrypting and decrypting content in a text file
- Creating a classic Windows application to use the library
-
Functional Programming
- Technical requirements
- Introduction
- Creating a .NET Standard 2.0 library
- Creating a .NET Core console application to use the library
- Creating a .NET Standard 2.0 library that uses tuples
- Creating a Razor Pages web application to use the library
- Creating a .NET Standard 2.0 library that uses delegates and lambda expressions
- Creating a .NET console application to use the library
- XML and Data
-
Exploring Threading
- Technical requirements
- Introduction
- Creating a library that can perform several things at once
- Creating a .NET Core console application to use the library
- Creating an async method with tasks
- Creating a WPF application to use the library
- Creating a thread pool
- Creating a .NET console application to use the library
-
Networking
- Technical requirements
- Introduction
- A library that displays an IP address and the name using sockets
- Creating a classic Windows application to use the library
- Creating a library that sends mail
- Creating a WPF application to use the library
- Creating a library to call a REST API
- Creating an ASP.NET MVC application to use the library
- To iOS with Xamarin
- To Android with Xamarin
- Let’s Fine-Tune Our Library
- Packaging and Delivery
- Deploying
Product information
- Title: .NET Standard 2.0 Cookbook
- Author(s):
- Release date: May 2018
- Publisher(s): Packt Publishing
- ISBN: 9781788834667
You might also like
book
C# 7 and .NET Core Cookbook
Quick solutions to common programming problems with the latest features of C# 7.0, .NET Core 1.1, …
book
.NET Core 2.0 By Example
Build cross-platform solutions with .NET Core 2.0 through real-life scenarios About This Book Bridges the gap …
book
Mastering C# and .NET Framework
Deep dive into C# and .NET architecture to build efficient, powerful applications About This Book Uniquely …
book
Hands-On Parallel Programming with C# 8 and .NET Core 3
Enhance your enterprise application development skills by mastering parallel programming techniques in .NET and C# Key …