How it works...

In steps 1 to 5, we opened the solution from the previous recipe and perform a quick build. This will make sure the code syntax is correct. If the build fails, you might have to check for any typos and correct them. This is always a good practice to make sure your code builds successfully before you close a solution or send it to source control. In steps 6 to 10, we added a new project to the solution. We have selected a console application template, which supports the full .NET Framework under Windows.

Then, in steps 12 to 15, we added the reference to the .NET Standard 2.0 library from our console application. This will allow you to access all the available functionality in the library for the console application. In step ...

Get .NET Standard 2.0 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.