Link to home
Start Free TrialLog in
Avatar of jands
jands

asked on

Visual Studio 2012 Warning regarding .net framework 3.5, 4

Hi,

I have a project that is coded with a 3rd party reference (example.dll) namespace and I can't compile the code.  I receive:

The primary reference "3rdparty.client, version=0.0.0.0, ..." could not be resolved because it was built against the .netframework 4.0 framework.  This is a higher version than the currently targeted framework .netframework 3.5.

The only option available under Project -> project1 properties -> application tab, is .net framework 3.5.

I've went to the website it directed me to, but I can't install the pack kb2600211 because it's blocked by my system.

I'm not sure where to go from here.

Thanks in advance for the help.
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

did u try install .net 4.0?
Avatar of jands
jands

ASKER

Yes, it says I already have 4.5 installed, so it wouldn't let me continue.
open the Environment Variables, what are the values for TEMP and TMP?
Avatar of jands

ASKER

They are both pointing to %userprofile%\appdata\local\temp.
Avatar of jands

ASKER

The previous post was for the user.

The System variables are both pointed to c:\windows\temp.
Avatar of jands

ASKER

Anyone?
Do u see in programs installed the .net 4.5?
Avatar of jands

ASKER

Yes...
Did u try to reinstall it?
Avatar of jands

ASKER

Yes.
Avatar of jands

ASKER

Found out SharePoint 2010 doesn't support .NET 4.0.

So, how can I create a visual web part with a reference to a namespace developed with 4.0?
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial