HighTechTalks DotNet Forums  

Dot net 1.1 in Dot net 2.0

Dotnet General Discussions microsoft.public.dotnet.general


Discuss Dot net 1.1 in Dot net 2.0 in the Dotnet General Discussions forum.



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

Default Dot net 1.1 in Dot net 2.0 - 12-28-2007 , 06:16 AM






I have a code that is compiled and runs in VS 2003, which i believe
runs 1.1 frameworks,

I want to know if we can do any of the following

1. I want to compile the code in 1.1 framework but run on 2.0
framework in the same machine, as I believe it is not possible to
configure VS 2003 to run and compile the code on 2.0 framework.

2. if the above the scenario is not possible will I be able to run the
1.1 code in a system that has got only 2.0 framework installed.

Reply With Quote
  #2  
Old   
Cor Ligthert[MVP]
 
Posts: n/a

Default Re: Dot net 1.1 in Dot net 2.0 - 12-28-2007 , 07:05 AM






Nishanth,

Quote:
1. I want to compile the code in 1.1 framework but run on 2.0
framework in the same machine, as I believe it is not possible to
configure VS 2003 to run and compile the code on 2.0 framework.
No you cannot,
Quote:
2. if the above the scenario is not possible will I be able to run the
1.1 code in a system that has got only 2.0 framework installed.
It should be possible however not recomended, some classes have different
behaviour (they learned from this, 2.0 to 3.5 is full upwards compatible).

Why not just download an express version of your solution and build it new?
The change that there will be much important warnings will be low.

Cor




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

Default Re: Dot net 1.1 in Dot net 2.0 - 12-28-2007 , 07:16 AM



Cor Ligthert[MVP] <notmyfirstname (AT) planet (DOT) nl> wrote:
Quote:
1. I want to compile the code in 1.1 framework but run on 2.0
framework in the same machine, as I believe it is not possible to
configure VS 2003 to run and compile the code on 2.0 framework.

No you cannot,
Yes you can. Just specify the <supportedRuntime> element in the
app.config file.

See http://msdn2.microsoft.com/en-us/library/w4atty68.aspx

I regularly build using VS2003 (because the app has to be *able* to run
on a machine with just 1.1) but then when the app is launched it uses
2.0 if it's available.

(The downside is that VS2003 won't let you debug into the code when
it's running in 2.0.)

Quote:
2. if the above the scenario is not possible will I be able to run the
1.1 code in a system that has got only 2.0 framework installed.

It should be possible however not recomended, some classes have different
behaviour (they learned from this, 2.0 to 3.5 is full upwards compatible).
Well, sort of. When you install 3.5, that installs 2.0SP1 which has
*some* breaking behaviour.

--
Jon Skeet - <skeet (AT) pobox (DOT) com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk


Reply With Quote
  #4  
Old   
Cor Ligthert[MVP]
 
Posts: n/a

Default Re: Dot net 1.1 in Dot net 2.0 - 12-28-2007 , 07:49 AM



Jon,

Are you sure, (the link you gave was directing to version 2008)

This one is for 2003

http://msdn2.microsoft.com/en-us/lib...68(VS.71).aspx

It shows at least only 1.0 and 1.1 versions.

(I have always read that it was impossible and because of the fact that I
have always Net 1.1 installed with assemblys from that type never seen if it
would give problems, however just believed what was written)

Cor


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

Default Re: Dot net 1.1 in Dot net 2.0 - 12-28-2007 , 09:34 AM



Cor Ligthert[MVP] <notmyfirstname (AT) planet (DOT) nl> wrote:
Quote:
Are you sure, (the link you gave was directing to version 2008)
Yes, I'm absolutely positive.

Right - that shows that the element was supported even then, just with
an example for v1.0 and v1.1. The same element can be used with other
version numbers though - it just looks for that version of the
framework.

Quote:
It shows at least only 1.0 and 1.1 versions.
Indeed - at the time that was written, how would MS have known what
version would come next (including minor version number)?

Quote:
(I have always read that it was impossible and because of the fact that I
have always Net 1.1 installed with assemblys from that type never seen if it
would give problems, however just believed what was written)
I'm afraid I don't quite understand that sentence, but I assure you
that it works. Just try it.

--
Jon Skeet - <skeet (AT) pobox (DOT) com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk


Reply With Quote
  #6  
Old   
Cor Ligthert[MVP]
 
Posts: n/a

Default Re: Dot net 1.1 in Dot net 2.0 - 12-28-2007 , 11:11 AM



Jon,

Thanks for the information,

Cor

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.