How it works...

In steps 1 to 5, we used .NET Core command-line tools to create a solution and then create a project. Then, we added the project to the solution. In steps 6 and 7, we opened Visual Studio Code for macOS and opened the directory we just created. Visual Studio Code for macOS allows you to work with .NET-based applications on macOS. Also, by installing extensions, it allows you to work with other popular technologies as well.

In steps 9 and 10, we renamed the default Class1.cs generated from the template and we renamed the file and the class to a meaningful name. In step 11, we added the necessary namespaces to work with files and collections. In step 12, we created a private variable to hold the filename. In step 13, we created ...

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.