Exercise: Set the Target Framework 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 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, on the toolbar along the top, click Show All Files.
  3. Right-click the MyFirstProject project node and click Properties.
  4. In the Project Designer, click the Applications tab.
  5. Do one of the following:
    • VB.NET - On the Compile tab, Advanced Compile Options, Target Framework drop-down list, select .NET Framework 4.5.
    • C# - On the Applications tab, Target Framework drop-down list, select .NET Framework 4.5.