Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / April 2006

Tip: Looking for answers? Try searching our database.

can library compiled 1.0 be used in Application compiled in 2.0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Baron Ng - 12 Apr 2006 10:00 GMT
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?

Thanks!
Mattias Sjögren - 12 Apr 2006 21:16 GMT
>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

Yes

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

No

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

Sure, you can specify that in the config file.

Mattias

Signature

Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Baron - 15 Apr 2006 03:43 GMT
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~~

>>I would like to ask if the following works:
>>1. Library built in VS.Net 2002, and referenced in a WinForm created in
[quoted text clipped - 13 lines]
>
> Mattias
Mattias Sjögren - 17 Apr 2006 18:44 GMT
>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?

Hopefully not, but there are some breaking changes documented here

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

>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???

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

Mattias

Signature

Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Baron Ng - 18 Apr 2006 06:43 GMT
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!

> >Any compatibility issue if I
> >compile the winform in .net 2.0,
[quoted text clipped - 15 lines]
>
> Mattias

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.