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 so that you start this chapter with fresh working projects:
- Use your preferred coding tool to create a new project, as defined in the following list:
- Project template: Class Library/
classlib - Project file and folder:
PacktLibrary - Workspace/solution file and folder:
Chapter06
- Project template: Class Library/
- Add a new project, as defined in the following list:
- Project template: Console App/
console - Project file and folder:
PeopleApp - Workspace/solution file and folder:
Chapter06
- Project template: Console App/
- In the
PacktLibraryproject, rename the file namedClass1.cstoPerson.cs. - In both projects, add
<ItemGroup>to globally and...