HighTechTalks DotNet Forums  

CLR 2.0

Dotnet Framework (CLR) microsoft.public.dotnet.framework.clr


Discuss CLR 2.0 in the Dotnet Framework (CLR) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
preport
 
Posts: n/a

Default CLR 2.0 - 03-14-2006 , 09:50 PM






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?



Reply With Quote
  #2  
Old   
Thomas Scheidegger [MVP]
 
Posts: n/a

Default Re: CLR 2.0 - 03-15-2006 , 06:17 AM






Hi

Quote:
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.



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




Reply With Quote
  #3  
Old   
AT
 
Posts: n/a

Default Re: CLR 2.0 - 03-15-2006 , 09:22 PM



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
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."


Reply With Quote
  #4  
Old   
SP
 
Posts: n/a

Default Re: CLR 2.0 - 03-15-2006 , 09:32 PM




"preport" <preport (AT) newsgroups (DOT) nospam> wrote

Quote:
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?
Develop it only in VS2003. Then you can use it with both 1.1 and 2.0
frameworks.

SP




Reply With Quote
  #5  
Old   
Jon Skeet [C# MVP]
 
Posts: n/a

Default Re: CLR 2.0 - 03-16-2006 , 02:23 AM



SP <ecneserpegats (AT) hotmail (DOT) com> wrote:
Quote:
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?

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.

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


Reply With Quote
  #6  
Old   
Wayne Hartell
 
Posts: n/a

Default Re: CLR 2.0 - 04-24-2006 , 08:40 AM



Some subtle and some not so subtle changes. Hard crashes of .Net 1.1 apps
when 2.0 is present ain't subtle.... ;-)

"Jon Skeet [C# MVP]" <skeet (AT) pobox (DOT) com> wrote

Quote:
SP <ecneserpegats (AT) hotmail (DOT) com> wrote:
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?

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.

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



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.