Exercise: Set the Target Framework and OS for a Project (.NET)

In this exercise, you will specify the target framework that should be used when the project is built.

To set the target framework and OS for the “MyFirstProject”

  1. In Microsoft Visual Studio, click View menu Solution Explorer to display the Solution Explorer; if it is not already displayed.
  2. In the Solution Explorer, right-click the MyFirstProject project node and click Properties.
  3. In the Project Properties window, click the Application node.
  4. Under General, do the following:
    • Click the Target Framework drop-down list and select .NET 8.0.
    • Click the Target OS drop-down list and select Windows.
  5. Close the Project Properties window and save the project.