万本电子书0元读

万本电子书0元读

顶部广告

.NET Standard 2.0 Cookbook电子书

售       价:¥

4人正在读 | 0人评论 9.8

作       者:Fiqri Ismail

出  版  社:Packt Publishing

出版时间:2018-05-18

字       数:24.3万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
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 Who This Book Is For 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 In Detail 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 approach A 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
目录展开

Title Page

Copyright and Credits

.NET Standard 2.0 Cookbook

Packt Upsell

Why subscribe?

PacktPub.com

Contributors

About the author

About the reviewer

Packt is searching for authors like you

Preface

Who this book is for

What this book covers

To get the most out of this book

Download the example code files

Code in Action

Conventions used

Sections

Getting ready

How to do it…

How it works…

There's more…

See also

Get in touch

Reviews

Back to Basics

Technical requirements

Introduction

Creating a C#-based console application

Getting ready

How to do it...

How it works...

See also

Creating a C# class library

Getting ready

How to do it...

How it works...

Creating a classic Windows-based application to use the library

Getting ready

How to do it...

How it works...

Creating a WPF-based application to use the library

Getting ready

How to do it...

How it works...

Hello Universe – My first .NET Standard class library

Getting ready

How to do it...

How it works...

Creating a Windows console-based application to use the library

Getting ready

How to do it...

How it works...

Creating an ASP.NET Core-based web application to use the library

Getting ready

How to do it...

How it works...

Primitives, Collections, LINQ, and More

Technical requirements

Introduction

Building a .NET Standard 2.0 library that uses primitives

Getting ready

How to do it...

How it works...

A .NET console application to use the library

Getting ready

How to do it...

How it works...

Creating collections

Getting ready

How to do it...

How it works...

A WPF application to use the library

Getting ready

How to do it...

How it works...

Describing our library with Reflections

Getting ready

How to do it...

How it works...

A .NET Core console application to use the library

Getting ready

How to do it...

How it works...

Building a .NET Standard 2.0 library that uses LINQ

Getting ready

How to do it...

How it works...

An ASP.NET MVC application to use the library

Getting ready

How to do it...

How it works...

Working with Files

Technical requirements

Introduction

Setting up .NET Core in Ubuntu

Getting ready

How to do it...

How it works...

Creating a log as text

Getting ready

How to do it...

How it works...

Creating an ASP.NET Core application in Ubuntu to use the library

Getting ready

How to do it..

How it works...

Setting up .NET Core in macOS

Getting ready

How to do it...

How it works...

Reading from a comma separated (CSV) text file

Getting ready

How to do it...

How it works...

Creating a .NET Core console application in macOS to use the library

Getting ready

How to do it...

How it works...

Compressing? Why not?

Getting ready

How to do it...

How it works...

Creating a classic Windows application to use the library

Getting ready

How to do it...

How it works...

Encrypting and decrypting content in a text file

Getting ready

How to do it...

How it works...

Creating a classic Windows application to use the library

Getting ready

How to do it...

How it works...

Functional Programming

Technical requirements

Introduction

Creating a .NET Standard 2.0 library

Getting ready

How to do it...

How it works...

Creating a .NET Core console application to use the library

Getting ready

How to do it...

How it works...

Creating a .NET Standard 2.0 library that uses tuples

Getting ready

How to do it...

How it works...

Creating a Razor Pages web application to use the library

Getting ready

How to do it...

How it works...

Creating a .NET Standard 2.0 library that uses delegates and lambda expressions

Getting ready

How to do it...

How it works...

Creating a .NET console application to use the library

Getting ready

How to do it...

How it works...

XML and Data

Technical requirements

Introduction

Creating a library that reads and writes to an XML file

Getting ready

How to do it...

How it works...

Creating an ASP.NET MVC application to use the XMLLib library

Getting ready

How to do it...

How it works...

Processing an XML file using LINQ to XML

Getting ready

How to do it...

How it works...

Creating a .NET Core console application to use the library

Getting ready

How to do it...

How it works...

Exploring Threading

Technical requirements

Introduction

Creating a library that can perform several things at once

Getting ready

How to do it...

How it works...

Creating a .NET Core console application to use the library

Getting ready

How to do it...

How it works...

Creating an async method with tasks

Getting ready

How to do it...

How it works...

Creating a WPF application to use the library

Getting ready

How to do it...

How it works...

Creating a thread pool

Getting ready

How to do it...

How it works...

Creating a .NET console application to use the library

Getting ready

How to do it...

How it works...

Networking

Technical requirements

Introduction

A library that displays an IP address and the name using sockets

Getting ready

How to do it...

How it works...

Creating a classic Windows application to use the library

Getting ready

How to do it...

How it works...

Creating a library that sends mail

Getting ready

How to do it...

How it works...

Creating a WPF application to use the library

Getting ready

How to do it...

How it works...

Creating a library to call a REST API

Getting ready

How to do it...

How it works...

Creating an ASP.NET MVC application to use the library

Getting ready

How to do it..

How it works...

To iOS with Xamarin

Technical requirements

Introduction

Installing Visual Studio for Mac

Getting ready

How to do it...

How it works...

Hello iOS – Creating a Xamarin iOS app

Getting ready

How to do it...

How it works...

Creating the .NET Standard 2.0 library

Getting ready

How to do it...

How it works...

Putting things together and testing the application

Getting ready

How to do it...

How it works...

To Android with Xamarin

Technical requirements

Introduction

Hello Android – Creating a Xamarin Android app

Getting ready

How to do it...

How it works...

Adding a .NET Standard 2.0 library to the Xamarin project

Getting ready

How to do it...

How it works...

Putting things together and testing the application

Getting ready

How to do it...

How it works...

Let’s Fine-Tune Our Library

Technical requirements

Introduction

A library logs things itself

Getting ready

How to do it...

How it works...

Creating a .NET Core console application to use the library

Getting ready

How to do it...

How it works...

Informing the end user – Exception handling and error messages

Getting ready

How to do it...

How it works...

Using Visual Studio 2017 diagnostics and debugging tools

Getting ready

How to do it...

How it works...

Packaging and Delivery

Technical requirements

Introduction

Creating a .NET Standard 2.0 library

Getting ready

How to do it...

How it works...

Creating a NuGet package of your library

Getting ready

How to do it...

How it works...

Submitting the package to NuGet package manager

Getting ready

How to do it...

How it works...

Creating a classic Windows application and testing the NuGet package

Getting ready

How to do it...

How it works...

Deploying

Technical requirements

Introduction

Creating a free Azure Cloud subscription

Getting ready

How to do it...

How it works...

Creating an ASP.NET core web application to use the library from NuGet

Getting ready

How to do it...

How it works...

Deploying the application to Azure Cloud

Getting ready

How to do it...

How it works...

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部