- C# 7 and .NET Core Cookbook
- Dirk Strauss
- 270字
- 2021-07-03 00:11:50
Getting ready
Start off by creating a regular console application in Visual Studio 2017. Simply call the project you create cookbook. Before I can jump into using Tuples in C# 7.0, I need to add in a NuGet package. Bear in mind that I am using the release candidate of Visual Studio. This process might change between now and the final release of the product.
- To do this, head on over to Tools, NuGet Package Manager and then, click on Manage NuGet Packages for Solution....

- Select the Browse tab and type in ValueTuple in the search box. The System.ValueTuple by Microsoft NuGet package should be displayed. Select the cookbook project under Manage Packages for Solution and click on the Install button.
Take note that I am using Visual Studio 2017 RC while writing portions of this book. You probably will not need to add System.ValueTuple from NuGet some time in the future after the final release. Adding System.ValueTuple from NuGet might, however, remain a requirement. Only time will tell.

- Visual Studio will now show you a prompt to review the changes you are about to make to your project. Just click on the OK button. Lastly, you will need to provide the License Agreement required by Microsoft. Just click on the I Accept button. Visual Studio will now start the NuGet package installation. It will show you its progress in the Output window.

After all this is complete, my Visual Studio solution looks as follows:

You will now be ready to create your first method that works with Tuples. Let's see how to do that next.
- 在最好的年紀(jì)學(xué)Python:小學(xué)生趣味編程
- DevOps Automation Cookbook
- CKA/CKAD應(yīng)試教程:從Docker到Kubernetes完全攻略
- 嚴(yán)密系統(tǒng)設(shè)計:方法、趨勢與挑戰(zhàn)
- Java編程技術(shù)與項目實戰(zhàn)(第2版)
- Spring Boot Cookbook
- Node.js Design Patterns
- 計算機(jī)應(yīng)用基礎(chǔ)實踐教程
- Android傳感器開發(fā)與智能設(shè)備案例實戰(zhàn)
- SpringBoot從零開始學(xué)(視頻教學(xué)版)
- Oracle Data Guard 11gR2 Administration Beginner's Guide
- 青少年學(xué)Python(第2冊)
- AI自動化測試:技術(shù)原理、平臺搭建與工程實踐
- Microsoft Exchange Server 2016 PowerShell Cookbook(Fourth Edition)
- Ubuntu Server Cookbook