Working through the examples in Exam Ref 70-483 Programming in C# Second Edition by Robert Miles in preparation for the Microsoft 70-483 exam. Listings relate to examples in the book.
- git
- Visual Studio 2019
To confirm that you have the prerequisites installed, the following terminal command should return a version number:
git --version
- Clone the project:
git clone https://github.com/jkempster34/Programming-in-C--70-483/
-
Open Visual Studio 2019.
-
On the start window, choose Open a project or solution.
-
Open
ProgrammingInCSharp/ProgrammingInCSharp.sln
-
The different projects relate to the chapters of the book. You can see which project is marked as the startup item in the Solution Explorer, as it is listed in a bold typeface. To change the startup project from the Solution Explorer, right-click the desired project and choose Set as StartUp Project from the context-sensitive menu that is displayed. You can also choose this menu item from the Project menu.
-
Most listings have their own Main method. Right-click the project containing the desired listing (listings are C# code files with .cs extension, their containing folders relate to skills in each chapter); the project should have been set as the startup project as described in step 5. Choose Properties from the menu that is displayed. Select the Application tab and choose the listing to be run from the Startup object drop-down menu.
-
To run the code, on the menu bar, choose Debug, Start without debugging or press Ctrl + F5