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.

CLR 2.0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
preport - 15 Mar 2006 03:50 GMT
I have a dll that I wrote in Visual Studio 2005 and would like to add it to
one of our older apps (CLR 1.1).
Can I do it? The machine has the .NET Framework 2.0 installed and the dll
doesn't do anything special.  It doesn't utilize Generics or anything..
Just a lot of business logic code I don't want to re-write.

While I'm sure I could paste this in Visual Studio 2003 and compile it, it
would be nice if I didn't have to do that for every change and I could just
use the same dll across apps.

Any suggestions?
Thomas Scheidegger [MVP] - 15 Mar 2006 12:17 GMT
Hi

   >I have a dll that I wrote in Visual Studio 2005 and would like to add it to
   > one of our older apps (CLR 1.1).

no, the assembly file format changed in 2.0,
thus the 1.1 runtime (nor VS 2003) can't read 2.0 assemblies.

Signature

Thomas Scheidegger - MVP .NET - 'NETMaster'
http://www.cetus-links.org/oo_dotnet.html - http://dnetmaster.net/

Kevin Yu [MSFT] - 16 Mar 2006 03:22 GMT
Hi proport,

I agree with Thomas, that the assembly file format changed in 2.0. It is
not forward compatibly, and you even cannot add reference to a .NET 2.0
class library in VS.NET 2003.

Kevin Yu
Signature

=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

SP - 16 Mar 2006 03:32 GMT
>I have a dll that I wrote in Visual Studio 2005 and would like to add it to
>one of our older apps (CLR 1.1).
[quoted text clipped - 7 lines]
>
> Any suggestions?

Develop it only in VS2003. Then you can use it with both 1.1 and 2.0
frameworks.

SP
Jon Skeet [C# MVP] - 16 Mar 2006 08:23 GMT
> > While I'm sure I could paste this in Visual Studio 2003 and compile it, it
> > would be nice if I didn't have to do that for every change and I could
[quoted text clipped - 4 lines]
> Develop it only in VS2003. Then you can use it with both 1.1 and 2.0
> frameworks.

You'll need to test it on both, however. There are some subtle changes
to behaviour in 2.0, not all of which are documented.

Signature

Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet   Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too

Wayne Hartell - 24 Apr 2006 13:40 GMT
Some subtle and some not so subtle changes. Hard crashes of .Net 1.1 apps
when 2.0 is present ain't subtle.... ;-)

>> > While I'm sure I could paste this in Visual Studio 2003 and compile it,
>> > it
[quoted text clipped - 8 lines]
> You'll need to test it on both, however. There are some subtle changes
> to behaviour in 2.0, not all of which are documented.

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.