How it works...

In steps 1 to 10, we created a blank solution and gave it a proper name. And then we added a .NET Standard 2.0 class library to the solution. In steps 11 and 12, we renamed the default Class1.cs to something more meaningful. Yes, you can always delete this class and create a new one. And, in step 13, we created two simple methods for the addition and subtraction of two integers.

Finally, we performed a quick build in step 14 for syntax checking.

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.