How it works...

In steps 1 to 9, we opened the existing solution with the .NET Standard 2.0 class library built in the previous recipe. Then we added a new Classic Windows Application project to that solution. We also gave it a proper name to match the solution. In steps 10 and 11, we renamed the default Windows form generated by Visual Studio. In steps 12 to 16, we added the necessary controls to build the user interface of our application.

In steps 18 to 21, we added the reference to the .NET Standard 2.0 library from our Classic Windows Application. This is a mandatory step, or else you will not have access to the library and its functionality. In step 23, we added a using statement that will tell the Windows application we have referenced ...

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.