0.2.18 How to Configure Visual Studio

Configuration Should Support the Course, Not Change It

Visual Studio has hundreds of options.

You do not need to configure all of them.

For this course, configuration has a narrow purpose:

Make sure the supplied course solutions open and run in the expected development environment.

Avoid changing settings simply because an online tutorial recommends them.

A development setting that is useful for another project may not match the environment used by your course.

Confirm the Required Workload

Open the Visual Studio Installer or the course-provided environment information.

Confirm that the .NET desktop development workload required for the course applications is available.

If your course specifies a particular .NET component or version, use that requirement.

The important question is not whether Visual Studio has many features installed.

The important question is whether it has the features needed to open the supplied C# desktop applications.

Open a Supplied Course Solution

Use the course-provided solution rather than creating a new project.

A Visual Studio solution commonly uses a ..sln file.

Open the supplied solution from the location provided by the course.

When Visual Studio finishes loading, you should see the solution and its project contents in Solution Explorer.

Do not rename solution files, project files, or folders during initial setup.

Those names may be part of the course's expected project structure.

Find Solution Explorer

Solution Explorer is the main navigation view for a Visual Studio solution.

If it is not visible, use Visual Studio's View menu to reopen Solution Explorer.

You will use this window throughout the course to locate projects and files.

For now, simply make sure you can identify:

  • the solution;
  • the project or projects inside it;
  • and the files inside the current project.
Identify the Startup Project

A solution can contain more than one project.

The startup project is the project Visual Studio attempts to run when you start the application.

If the supplied course solution contains multiple projects, follow the course directions for which project should be the startup project.

Do not change the startup project simply because another project name looks familiar.

Run the Supplied Application Before Editing It

When the course directs you to run the application, use Visual Studio's normal Start command.

The first goal is to establish a known starting point.

If the supplied program opens successfully before you edit anything, you know that:

  • Visual Studio can load the solution;
  • the required project can be built;
  • and the application can start in your environment.

That makes later problems easier to diagnose.

If the Application Does Not Start

Avoid changing many options at once.

First identify the stage where the problem appears.

For example:

  • the solution will not open;
  • Visual Studio says a required component is missing;
  • the project loads but cannot build;
  • the build completes but the expected application does not start.

Record the exact message.

A screenshot can help when asking for assistance, as long as it does not expose private information.

Use the course-provided support process before changing project files, framework targets, or other technical configuration values.

Leave Advanced Settings Alone for Now

Later modules will introduce development tools such as:

  • breakpoints;
  • debugger windows;
  • build feedback;
  • code-quality feedback.

Those tools do not require you to redesign the Visual Studio environment now.

A good configuration at this stage is one that lets the supplied solution open and run without changing the project's intended structure.