all groups > dotnet clr > april 2006 >
You're in the

dotnet clr

group:

can library compiled 1.0 be used in Application compiled in 2.0


can library compiled 1.0 be used in Application compiled in 2.0 Baron Ng
4/12/2006 2:00:02 AM
dotnet clr: I have an winform referencing another .net dll:
I would like to ask if the following works:
1. Library built in VS.Net 2002, and referenced in a WinForm created in
VS.Net 2005

2. Library built in VS.Net 2005, and referenced in a WinForm created in
VS.Net 2002

In case I have an application that is built on .Net 1.0
Can I force it to run on .Net 2.0?

Re: can library compiled 1.0 be used in Application compiled in 2.0 Mattias Sjögren
4/12/2006 10:16:15 PM

[quoted text, click to view]

Yes


[quoted text, click to view]

No


[quoted text, click to view]

Sure, you can specify that in the config file.


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Re: can library compiled 1.0 be used in Application compiled in 2.0 Baron
4/15/2006 12:00:00 AM
Any compatibility issue if I
compile the winform in .net 2.0,
leave the referenced libraries compilied in .net 1.0
and use .Net 2.0 CLR to run everything?

if the library use .Net 1.0 version of System.Net
and the machine has both .Net 1.0 and .Net 2.0 installed

when the library referenced by .Net 2.0 winform
would it use .Net 1.0 or .Net 2.0 version of the System.Net???

Thanks~~




[quoted text, click to view]

Re: can library compiled 1.0 be used in Application compiled in 2.0 Mattias Sjögren
4/17/2006 7:44:07 PM
[quoted text, click to view]

Hopefully not, but there are some breaking changes documented here

http://msdn.microsoft.com/netframework/programming/breakingchanges/default.aspx


[quoted text, click to view]

The version that comes with your loaded CLR version, i.e. 2.0.


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Re: can library compiled 1.0 be used in Application compiled in 2. Baron Ng
4/17/2006 10:43:01 PM
In that case;
the best option is to upgrade (and test) all the assemblies to .Net 2.0?
That's lot of works.....

since we can't just upgrade the 3rd party codes to .Net 2.0~~~~

Thanks anyway!


[quoted text, click to view]
AddThis Social Bookmark Button