To create a class library with Visual Studio Code, follow these steps:
- Create a folder named Chapter05 with a subfolder named PacktLibrary.
- Start Visual Studio Code and open the PacktLibrary folder.
- View Integrated Terminal and enter the following command:
dotnet new classlib
- In the EXPLORER pane, rename the file named Class1.cs to Person.cs.
- Click on Person.cs to open it, restore packages, and change the class name to Person.