In this recipe, we will be creating a .NET Core console application to use the library from the previous recipe. You can also try this recipe in macOS or Linux, since .NET Core is cross-platform.
Make sure you have completed the previous recipe and that it builds successfully. Let's open the solution and get ready.
- Open Visual Studio 2017.
- Now, open the solution from the previous recipe. Click
File
|Open
|Open Project/Solution
, or press Ctrl + Shift + O, and select theChapter10.Logging
solution. - Press Ctrl + Shift + B for a quick build to check that everything is fine.
- Click on the
Chapter10.Logging
solution label. ClickFile
|Add
|New Project
. - In the
Add New Project
template dialog box, expand theVisual C#
node in the left-hand pane. - Select
.NET Core
and selectConsole App (.NET Core)
in the right-hand pane: