Welcome Guest Search | Active Topics | Members | Log In | Register

Dot net 1.1 in Dot net 2.0 Options · View
Nishanth
Posted: Thursday, December 27, 2007 7:16:53 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 27/12/2007 19:16:53
Date: Fri, 28 Dec 2007 03:16:53 -0800 (PST)

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.
Jon Skeet [C# MVP]
Posted: Friday, December 28, 2007 12:16:05 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 28/12/2007 12:16:05
Date: Fri, 28 Dec 2007 12:16:05 -0000

Cor Ligthert[MVP] <notmyfirstname@planet.nl> wrote:
> > 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.)

> > 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@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
Cor Ligthert[MVP]
Posted: Friday, December 28, 2007 2:05:41 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 28/12/2007 14:05:41
Date: Fri, 28 Dec 2007 13:05:41 +0100

Nishanth,

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


Jon Skeet [C# MVP]
Posted: Friday, December 28, 2007 2:34:30 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 28/12/2007 14:34:30
Date: Fri, 28 Dec 2007 14:34:30 -0000

Cor Ligthert[MVP] <notmyfirstname@planet.nl> wrote:
> Are you sure, (the link you gave was directing to version 2008)

Yes, I'm absolutely positive.

> This one is for 2003
>
> http://msdn2.microsoft.com/en-us/library/w4atty68(VS.71).aspx

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.

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

> (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@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
Cor Ligthert[MVP]
Posted: Friday, December 28, 2007 2:49:07 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 28/12/2007 14:49:07
Date: Fri, 28 Dec 2007 13:49:07 +0100

Jon,

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

This one is for 2003

http://msdn2.microsoft.com/en-us/library/w4atty68(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

Cor Ligthert[MVP]
Posted: Friday, December 28, 2007 6:11:16 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 28/12/2007 18:11:16
Date: Fri, 28 Dec 2007 17:11:16 +0100

Jon,

Thanks for the information,

Cor
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.1 (NET v2.0) - 9/10/2007
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.812 seconds.