In this recipe, we will be creating a .NET Core console application to use the library built in the previous session. .NET Core is a cross-platform .NET flavor that runs on Windows, Linux, and macOS. This recipe focuses on .NET Core that runs under macOS.
Let's open the terminal and make sure we are in the root of the solution built in the previous recipe. Perform a quick build command as follows to check that everything is working fine:
$ dotnet build
- Open the terminal (
Applications
|Utilities
|Terminal
). - Navigate to the root of the solution we built in the previous recipe and enter the following command:
$ dotnet new console -o Chapter3.CsvFile.ConsoleApp
- Again, type this command to see the content of the directory:
$ ls
- Your terminal should look like this:
- Execute the following commands to add this project to the solution and to test build:
$ dotnet sln add Chapter3.CsvFile.Console/Chapter3...