Compiling and Running the Code Using the Dotnet CLI
Learn about how to executing a console app, add an exception, and observing the result in the terminal.
We'll cover the following
After creating our project and writing the necessary code, the next step is to compile and run our code to see it in action. Below, we’re guided through the process using Visual Studio Code. Let’s dive in:
Steps to compile and run the code
The steps to compile and run the code are:
Step 1: Navigate to “View | Terminal” and enter the following command:
Get hands-on with 1400+ tech skills courses.