3

I have no experience in using C# .Net. I have one small question. I have a library written in .Net framework 2. Will i be able to import it and use it in .Net framework 4 ?.

Joel Coehoorn
  • 399,467
  • 113
  • 570
  • 794
klijo
  • 15,761
  • 8
  • 34
  • 49

2 Answers2

4

Yes, you can reference a 2.0 class library from an application of a higher framework version, but not the other way around.

wsanville
  • 37,158
  • 8
  • 76
  • 101
0

You can always check the .NET Version Compatibility. (There are some caveats moving to 4, but generally speaking you should be fine.)

Any problems you might see would arise from a version previous to 2. (Though I hear past 4 is a re-write, so I'm not sure how they are handling backwards compatibility. I'm sure they have to keep it safe, as no many people want to side-load two .net versions).

Brad Christie
  • 100,477
  • 16
  • 156
  • 200