I've got a project that has some references that were giving me the following issue:
The primary reference "reference" could not be resolved because it was built against the ".NETFramework, Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework, Version=v4.5.1".
So I thought I'll just install 4.5.2 and then target my project to that. So, I installed it, rebooted and checked it was there as per here. This proved it had been installed. However, when I re-opened my project in VS 2013 my available target framework only went up to 4.5.1.
So my question is, how can I get VS 2013 to now recognise that I have 4.5.2 installed?
Install the developer pack of the .NET Framework you wish to use then https://www.microsoft.com/en-us/download/details.aspx?id=42637:
In Solution Explorer, open the shortcut menu for the project that you want to change, and then choose Properties.
In the left column of the properties window, choose the Application tab.
In the Target Framework list, choose the version that you want.
In the verification dialog box that appears, choose the Yes button. The project unloads. When it reloads, it targets the .NET Framework version that you just chose.
You should know that certain features might or might not be available in a later version and you might need to fix them when changing to a different version of the .NET framework
In my experience, I usually have a new version of the .NET Framework displayed in VS after a restart. I am using VS2013 at the moment