Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

Homework 0

Step 1

First, you must install .NET and Visual Studio Code (or another editor of your choice).

Step 2

Next, create a directory (also called a folder) called hw0 to store the next project and create the project. Once you have created this directory, you should open it in VS Code by clicking "File > Open Folder..." and selecting the hw0 directory you just created.

It is recommended to use the terminal within VS Code for the following commands. You can open the Terminal by selecting "View > Terminal" in VS Code.

To create the project, run:

dotnet new console

Once the project has been created, run:

dotnet run

You should see Hello, World! displayed.

Step 3

Submit the assignment to Gradescope. Only submit these two files:

  • Program.cs
  • hw0.csproj

Video Example

In the accompanying videos, you may see me issue commands in my terminal which are not included in the main text of the assignment (e.g., "cd ..." or "ls"). You should ignore those commands as they may not work on your machine if copied verbatim. These videos are meant to be an example, but not followed exactly.

MacOS

Screen.Recording.2024-01-16.at.6.36.20.PM.mov

Windows

Windows.Recording.mp4