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”
- In Microsoft Visual Studio, click View menu Solution Explorer to display the Solution Explorer if it is not already displayed.
- In the Solution Explorer, on the toolbar along the top, click Show All Files.
- Right-click the MyFirstProject project node and click Properties.
- In the Project Designer, click the Applications tab.
- 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.