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.aspxI 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.skeetWorld class .NET training in the UK:
http://iterativetraining.co.uk