0

I have a dll file built on .Net Framework 4.5 and I need for a particular reason, use this dll to be reference in a .Net Framework 1.1. Please don't ask me why I am using a 1.1 project :) When I try to import the dll's reference I get a message telling me it's not a valid assembly or COM component. Thanks!

1
  • Why are you using a 1.1 project? :)
    – spender
    Jul 3, 2015 at 14:53

3 Answers 3

0

No. It is not possible. You can't use a dll developed in .Net framework 4.5 in an older version of the framework.

See: Version Compatibility in the .NET Framework

0
0

Short answer no. Because each framework introduces new features and changes some of the existing ones.

The only way is to migrate your .net 1.1 project into .net 4.5 (although .net supports forward compatibility).

0

Actualy you can do this by wrapping the .net4.5 dll in com , and accessing it in .net1.1 using com dll import. I haven't got the time to write a sample but take a look at this article, its a bit messy to do this but it should work even in .net 1.1 , the article mentions .net2.0 but its the same principle for .net1.1

How to use .Net4 based dll in earlier framework

1
  • "as project reference?" that is the question, I am not sure even using that as COM component in .Net framework 1.1 would work, but you certainly can't add it as a reference.
    – Habib
    Jul 3, 2015 at 15:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.