0.2.7 How to Open Solutions in Visual Studio

To open a Visual Studio project, double click on the .sln file located in your assignment folder.

That will open this landing screen.

  1. This is the Solution Explorer. It contains all the information in the project. If it ever disappears you can go to View > Solution Explorer to get it back or press CTRL+ALT+L
  2. This is the project file.
  3. This is the folder we give you that holds all of the classes. This will be covered more in Week 2.
  4. This is the XAML for the application. This contains the user interface that shows when the application is run.
  5. This button runs the application.

We want to write code in the MainWindow.xaml.cs (cs stands for C-sharp). The MainWindow.xaml.cs is a class that controls things that happen in the MainWindow.xaml. We will cover this more later. For now, to open the MainWindow.xaml.cs, expand the MainWindow.xaml in the Solution Explorer and double click the MainWindow.xaml.cs file.

Doing this will open the MainWindow.xaml.cs file so that it's editable.