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
  • 380,066
  • 110
  • 546
  • 781
klijo
  • 14,783
  • 8
  • 33
  • 47

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
  • 36,693
  • 7
  • 74
  • 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
  • 98,427
  • 16
  • 148
  • 198