.NET 1.1 and 2.0

G

Guest

I have made a DLL using C# and .NET 2.0.
My customers develop an app using C# and .NET 1.1 and wants to use my DLL.
How can we do this ?
 
S

Stoitcho Goutsev \(100\)

Recompilation (it may require changing the code also) for .NET1.1.

If you want to be compatible with both versions compile your dll against
1.1. .NET 2.0 can load and use these dlls, but not the other way around.
 
J

james

zolof said:
I have made a DLL using C# and .NET 2.0.
My customers develop an app using C# and .NET 1.1 and wants to use my DLL.
How can we do this ?

They could install the .NET runtime 2.0. I think they should be able to
write their 1.1 app and reference yours... (but willing to be proved wrong!)

Otherwise, can your code be ported back to 1.1 and built in there? Or do you
use 2.0 specific features? If the latter, they have no choice but to install
2.0.

James.
 
M

Marc Gravell

No : you can have one framework per process; if their exe is 1.1, then the
1.1 framework will be loaded, and all 2.0 calls will barf. If, however, the
exe can be written as a trivial wrapper in 2.0, it may be possible to
reference both the 1.1 components and the 2.0 components - but the 1.1 code
cannot rirectly reference 2.0 code.

As long as they aren't developing asp.net, can you encourage them to switch
frameworks? A lot of 1.1 code will compile fine under 2.0, so they can keep
their code-base (albeit old-school), but get a newer GUI and they can use
your objects. Acknowledged this isn't always feasible when customers are
involved.

Supporting 1.1 customers is a PITA; you get stuck with the obsoleted methods
(as Stoitcho mentions).

Marc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top