Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 422
  • Last Modified:

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.
0
jands
Asked:
jands
  • 7
  • 4
1 Solution
 
Meir RivkinFull stack Software EngineerCommented:
did u try install .net 4.0?
0
 
jandsAuthor Commented:
Yes, it says I already have 4.5 installed, so it wouldn't let me continue.
0
 
Meir RivkinFull stack Software EngineerCommented:
open the Environment Variables, what are the values for TEMP and TMP?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
jandsAuthor Commented:
They are both pointing to %userprofile%\appdata\local\temp.
0
 
jandsAuthor Commented:
The previous post was for the user.

The System variables are both pointed to c:\windows\temp.
0
 
jandsAuthor Commented:
Anyone?
0
 
Meir RivkinFull stack Software EngineerCommented:
Do u see in programs installed the .net 4.5?
0
 
jandsAuthor Commented:
Yes...
0
 
Meir RivkinFull stack Software EngineerCommented:
Did u try to reinstall it?
0
 
jandsAuthor Commented:
Yes.
0
 
jandsAuthor Commented:
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
 
CodeCruiserCommented:
I would say you can't.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 7
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now