What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Visual Studios

BPAlpha

New Member
Joined
Jan 15, 2010
Messages
594
Reaction score
41
Warning 2 The referenced assembly "Honorbuddy" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.

keep getting this error?? any ideas
 
I had this problem the other day and MaiN knew the problem instantly...

Go to Projects -> Properties -> "Target Framework"....
Set Target Framework to ".NET Framework 3.5", you currently have it set to ".NET Framework 3.5 Client Profile".

I guess its a common mistake to make. :D

cheers,
CJ
 
VS 2010 sets you up to use .NET 4.0 by default. HB2 is a .NET 3.5 assembly. (You can't load 3.5 and lower assemblies in 4.0 without a bunch of fuss)

Also keep in mind, that VS2010 uses the C# 4.0 compiler, which includes support for 'syntax' that the 3.5 compiler doesn't. (Things such as default parameters, and interface variance.)

If you're just starting out; I suggest finding a copy of VS2008 instead. (The language differences may end up causing you more headaches in the long run)
 
VS 2010 sets you up to use .NET 4.0 by default. HB2 is a .NET 3.5 assembly. (You can't load 3.5 and lower assemblies in 4.0 without a bunch of fuss)

Also keep in mind, that VS2010 uses the C# 4.0 compiler, which includes support for 'syntax' that the 3.5 compiler doesn't. (Things such as default parameters, and interface variance.)

If you're just starting out; I suggest finding a copy of VS2008 instead. (The language differences may end up causing you more headaches in the long run)

Im gonna be kinda curious, why haven't you guys went to 4.0 yet? Im not saying anything bad, Im just curious.
 
Im gonna be kinda curious, why haven't you guys went to 4.0 yet? Im not saying anything bad, Im just curious.

It's hard enough to get people using 3.5 SP1. We have plans for moving to 4.0, just not any time real soon.
 
VS 2010 sets you up to use .NET 4.0 by default. HB2 is a .NET 3.5 assembly. (You can't load 3.5 and lower assemblies in 4.0 without a bunch of fuss)

Also keep in mind, that VS2010 uses the C# 4.0 compiler, which includes support for 'syntax' that the 3.5 compiler doesn't. (Things such as default parameters, and interface variance.)

If you're just starting out; I suggest finding a copy of VS2008 instead. (The language differences may end up causing you more headaches in the long run)

Would creating a project and using the *.net Framework 3.5* work just as well as using VS 2008? I'm playing in 2010 w/ some books that I picked up and they all use 2010 and I'm just curious atm.
 

Attachments

  • C# 3.5.webp
    C# 3.5.webp
    44.9 KB · Views: 24
that's what i'm doing kick and haven't had any problems so far.
 
alright :) i'm still using the 4.0 b/c the book didn't tell me not to, but I'm just seeing if i need to get vs 08' or if the "downscaling" for 2010 will work w/ hb's systems
 
Back
Top