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”
- In Microsoft Visual Studio, click View menu Solution Explorer to display the Solution Explorer; if it is not already displayed.
- In the Solution Explorer, right-click the MyFirstProject project node and click Properties.
- In the Project Properties window, click the Application node.
- 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.
- Close the Project Properties window and save the project.