Reputation: 101
.Net 4.5 installs to the directory
C:\Windows\Microsoft.NET\Framework\v4.0.30319
Visual Studio 2010 installs .Net 4.0 to the directory
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0
Even if .Net 4.5 is installed prior to VS 2010. Now, no matter what I do, both VS 2010 and VS 11 keep referencing the assemblies in
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0
Even if I remove the assembly from the project, and add the assembly by browsing to the 4.5 directory
C:\Windows\Microsoft.NET\Framework\v4.0.30319
How do I get Visual Studio to reference the .Net assemblies located here
C:\Windows\Microsoft.NET\Framework\v4.0.30319 ??
Thanks
Upvotes: 0
Views: 1061
Reputation: 49013
You have to update the target framework version and choose .Net 4.5 in project properties:
Upvotes: 5