This guide will help you set up and run a .NET Framework Console Application using Visual Studio.
-
Download Visual Studio
- Download Visual Studio from the official website.
- Be sure to select the community edition (other options are paid for) and to choose the correct download for your operating system
- I have chosen Windows!.
-
Install Visual Studio
- Run the downloaded installer and follow the installation wizard to complete the installation.
- Click next through the wizard dont change anything from default.
-
Open Visual Studio
- Once install is complete you may proceed with the instructions below
- Launch Visual Studio from your desktop or start menu by left clicking it. (it is the purple V icon)
-
Create a New Project
- Click on "Create new project" shown on the right hand side.
- Select the ".NET Framework Console App" category (ensure it is the one for C# indicated just below).
- If you are struggling to find the".NET Framework Console App" you can search for it with the search feature in the top right hand corner just click and simply enter .NET Framework Console App
-
Select .NET Framework Version
- In the "Create a new project" window, make sure to select ".NET Framework 4.8" as the target framework. This will be show to you via one of the dropdown menues it will be indicated with SDK version.
- Once complere click "Create" to create the project.
-
Access Source Code
- Go to my GitHub repository.
- You can download my source code as a zip indicated by the download as zip.
- Click on the "Code" button and select "Open with Visual Studio".
-
Run the Project
- Once the source code is open in Visual Studio, navigate to the green "Start" button or press
F5to run the program. - This will start the program.
- The program will prompt you through creating your recipes click enter between each prompt.
- Once the source code is open in Visual Studio, navigate to the green "Start" button or press
- Created Unit Tests (for CalorieChecker). Robust testing most scenarios covered.
- Recipes now have names: Users are able to choose the name of their recipe but cannot have duplicate names.
- Created delegate to check if the recipe is over 300 calories: Deleagte will trigger if the total number of calories across all ingridients exceeds 300.
- Created Search feature to search recipe by name. The feature allows the user to search then provides them with the full recipe displayed.
- Created display feature to show recipes in alphabetical order.
- Improved Comments: More comments add throught the project.
- Backend created with getters and setters.
- New tags created on github.
- Improved ReadMe.
- Improved error handling.
- Added user Interface with pages Recipe Name, Ingridient and Scale
- Improved Delagate with additional calorie infomation
- Added new branch with an additional Readme on instructions on how to run the project and a step by step walkthrough.
My referencing for completing this aplication