Claudio Redi
Claudio Redi

Reputation: 68440

Visual Studio 2010 not recognizing .NET framework 4.0.3

When I try to open a solution I'm getting this message

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

I installed the upgrade from here but that didn't fix the problem. I restarted the machine just in case but no luck

Does anyone know what's missed?

Upvotes: 3

Views: 2796

Answers (3)

Claudio Redi
Claudio Redi

Reputation: 68440

This is resolved, I needed to install Multi-Targeting Pack for Microsoft .NET Framework 4.0.3 (KB2600213))

Upvotes: 5

Tom van Enckevort
Tom van Enckevort

Reputation: 4198

You need to install the .NET Framework 4.0 SDK, which can be found here.

What you installed is the .NET 4.0 runtime, required for running .NET 4.0 applications as a client.

Upvotes: 2

SkyBlues87
SkyBlues87

Reputation: 1235

Try confirming what versions you have installed on your machine, i.e. go to

C:\Windows\Microsoft.NET\Framework

or the following on a 64bit machine:

C:\Windows\Microsoft.NET\Framework64

do the underlying folders here in include v4.0.30319 (or similar)?

Now what does the VS project contain as its target framework:

<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>

Upvotes: 0

Related Questions