In this recipe, we will be creating a .NET Core 2.0 console application to use the library we built in the previous recipe.
Make sure you have completed the previous recipe that built the .NET Standard 2.0 library. If you have completed it, locate it, and open it using Visual Studio 2017. Perform a quick build to check for the syntax using Ctrl + Shift + B.
- Open Visual Studio 2017.
- Now open the solution that we built from the previous recipe.
- The
Solution Explorer
should look like this:
- Press Ctrl + Shift + B for a quick build to check the syntax.
- Now, let's select the solution name and right-click.
- From the menu, select
Add
|New Project
. - In the
New Project
dialog box, expand theVisual C#
node and select.NET Core
in the left-hand pane. - In the right-hand pane, select
Console App (.NET Core)
:
- In the
Name:
textbox, typeChapter4.Functions.CoreConsoleApp
and leave the defaults as they are:
- Now, the
Solution Explorer...