When you’re first opening an application in VS2012 that targets some previous version of the framework (prior to version 4.5), a Project Compatibility wizard will open, prompting you to automatically update to the latest and greatest.
But what do you do if you cancel this wizard, but later decide to upgrade?
Turns out it’s very easy. Just follow these few steps and VS2012 will take care of it for you.
- Open your Solution in Visual Studio 2012
- Right click on the first project, and choose Properties
- Choose .NET Framework 4.5 from the dropdown (see screenshot)
- Repeat for every project in your solution
Visual Studio will update the web.config and any other files that are necessary. In other words, that’s all you have to do; easy!
If you run into any problems, see this article for help: http://msdn.microsoft.com/en-us/library/vstudio/cc668079(v=vs.110).aspx.