Setting up a class library and console application
We will start by defining a workspace/solution with two projects like the one created in Chapter 5, Building Your Own Types with Object-Oriented Programming. Even if you completed all the exercises in that chapter, follow the instructions below because we will use C# 10 features in the class library, so it needs to target .NET 6.0 rather than .NET Standard 2.0:
- Use your preferred coding tool to create a new workspace/solution named
Chapter06. - Add a class library project, as defined in the following list:
- Project template: Class Library /
classlib - Workspace/solution file and folder:
Chapter06 - Project file and folder:
PacktLibrary
- Project template: Class Library /
- Add a console app project, as defined in the following list:
- Project template: Console Application /
console - Workspace/solution file and folder:
Chapter06 - Project file and folder:
PeopleApp
...
- Project template: Console Application /