Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.net framework 4.5.1 missing from Visual Studio 2012

Just did a fresh rebuild of my machine.

Opening a previous project running .Net 4.5.1, it says

"The C# project is targeting .NETFramework,Version=v4.5.1, which is not installed on this machine"

Installed 4.5.2, re-installed VS, re-installed IIS, .NET, and did aspnet_iisreg -i as well.

If I create a new project, 4.5.1 is not in the list of Target Frameworks.

4.5.2 is installed on the machine and shown in the add/remove programs list.

like image 453
user3953989 Avatar asked Aug 28 '14 15:08

user3953989


1 Answers

Once you have Visual Studio 2012 installed (and all applicable updates), you need to install the 4.5.1 Multi-Targeting Pack. Once you have it installed, you'll have 4.5.1 available.

Installing 4.5.2 does not include 4.5.1 for framework targeting. If you want both 4.5.1 and 4.5.2 available as Target Frameworks, you need to install both.

like image 177
vcsjones Avatar answered Oct 07 '22 17:10

vcsjones