- Learn how to create a decent project structure
- Learn how to create a decent GIT repository
- Learn how to create a console application
- Learn how to link a
Class Library
- Create the following folder structure
- ch-1-exercise-1
- src
- ch-1-exercise-1
- Use a
dotnetcommand to create a new console application in thesrcfolder calledApp - Use a
dotnetcommand to create a.gitignorefile in the root folderch-1-exercise-1 - Use a
gitcommand to make the root folderch-1-exercise-1a GIT repository - Use a
gitcommand or VS Code to commit your changes- Make sure there are no binary files tracked in the repository.
- Use a
dotnetcommand to create aclass libraryin thesrcfolder calledDomain - Use a
dotnetcommand to reference theDomainclass library in the console application. - Use a
gitcommand or VS Code to commit your changes - Rename
Class1toPerson - In the
Personclass, create a field callednameof typestringand initialize it with your own name. - In the
Personclass create a public function calledSayHellowhich printsHello, {yourname}. - In
Program.csuse a top-level-statement to create a new Person object calledyouand use the functionSayHelloto print the name to the screen. - Use a
dotnetcommand to run the application. - Use a
gitcommand or VS Code to commit your changes
A possible solution can be found here.