Solved

Visual Studio 2012 Warning regarding .net framework 3.5, 4

Posted on 2013-06-25
12
412 Views
Last Modified: 2013-07-12
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.
0
Comment
Question by:jands
  • 7
  • 4
12 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 39275750
did u try install .net 4.0?
0
 

Author Comment

by:jands
ID: 39275812
Yes, it says I already have 4.5 installed, so it wouldn't let me continue.
0
 
LVL 42

Expert Comment

by:sedgwick
ID: 39275931
open the Environment Variables, what are the values for TEMP and TMP?
0
 

Author Comment

by:jands
ID: 39276115
They are both pointing to %userprofile%\appdata\local\temp.
0
 

Author Comment

by:jands
ID: 39276117
The previous post was for the user.

The System variables are both pointed to c:\windows\temp.
0
 

Author Comment

by:jands
ID: 39282039
Anyone?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 42

Expert Comment

by:sedgwick
ID: 39283744
Do u see in programs installed the .net 4.5?
0
 

Author Comment

by:jands
ID: 39290633
Yes...
0
 
LVL 42

Expert Comment

by:sedgwick
ID: 39290931
Did u try to reinstall it?
0
 

Author Comment

by:jands
ID: 39293101
Yes.
0
 

Author Comment

by:jands
ID: 39293896
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?
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 39297319
I would say you can't.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now