This repo contains a quick introduction to C#. Proceed as follows:
- Clone this repository. You'll need it to make the exercises.Cancel changes
- Let yourself be guided by the companion text. Make sure to follow it! It contains valuable information to solve the exercises.
- Click on the menu File -> Open -> Folder and select the
exercises
folder. - In the Solution Explorer's toolbar, click "Switch between solutions and available views". You should see a list of .sln files.
- Double click on the .sln of the exercise you wish to make.
- To get back to the overview of all exercises, click the "Switch between solutions and available views" again.
.NET constantly evolves and new versions come out every year. Students who install Visual Studio now typically only get the latest version, whereas the exercises use an older version. If you encounter errors regarding missing SDKs, here's how to solve them:
- In the Solution Explorer, right click on the project.
- Select Properties.
- Change the target framework to something you have installed. Typically, the version at the very top will work.
- Make sure you have the .NET CLI installed
- Inside the exercise's directory, write
dotnet test
.