How to add .Net3.5 dll into .Net2.0 project?

Posted by macias on Stack Overflow See other posts from Stack Overflow or by macias
Published on 2010-05-05T10:20:06Z Indexed on 2010/05/05 10:28 UTC
Read the original article Hit count: 213

Filed under:
|
|
|

I have a dll which is based on .net 3.5 -- it uses internally for example Linq, but the exposed API is straightforward, no fancy stuff. Since C# generics are resolved at compile time I assume that for calling party all it counts is API (all public parts).

However when I try to use this dll from net2.0 project I get info, that the dll cannot be referenced because the dll or one of its dependencies requires a later version of .net framework.

I can install any .net version I want on target computer (when entire app is installed), but I cannot change .net version for the project itself.

So: how to solve this? When adding a C dll to this project I had no such problems, so are C# dlls self-contained or not?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET