Search This Blog

February 12, 2014

Fixed the issue : The C# Project is targeting .NET Framework, version=v4.5, which is not installed on this machine.

Today I logged in to Windows Server 2008 R2 and downloaded the latest code from TFS 2013. When opening the solution file, I saw the following screenshot error.

Change the target to .NET framework 4.5. You can change back to .NET Framework , version =v4.5 at a later time.


 After looking into this issue, here are my findings:

Another team member is using .NET framework 4.5.1 on his laptop via Visual Studio 2012.

When opening the solution file, for some reason, there is no .NET framework 4.5 for this project in the dropdown on this machine. That explained why I saw this error.


 Forgot that screenshot error,  moved on and used . NET framework 4.5.1 to build the project. It worked perfectly.