In this recipe, will be using .NET Core 2.0 under macOS. I assume you are familiar with using a terminal and typing a few commands in it. We will be looking at command-line tools supplied with .NET Core 2.0 to create our .NET Standard 2.0 library that reads a Comma Separated Values (CSV) file and returns its data.
If you have not already completed the previous recipe, make sure you have done it. It will help you to download .NET Core 2.0 and Visual Studio Code as an IDE. Let's fire up the terminal and get started.
- Open a terminal window (
Applications
|Utilities
|Terminal
). - Now, in your
home
directory, type the following command (you might have to create a separate directory for your projects and do the following command):
$ dotnet new sln -o Chapter3.CsvFile
- Now, type the following command to navigate to the newly created solution:
$ cd Chapter3.CsvFile
- Again, type this command to create the .NET Standard 2.0 library...