Home All Groups Group Topic Archive Search About

Selecting from multiple .NET versions

Author
12 Apr 2006 1:55 AM
Z
Hi,

On my PC I have multiple .NET frameworks selected (1.0, 1.1 and 2.0)
In Visual Studio 2003, how do I select which one I use to build my project?

Thanks

Author
12 Apr 2006 5:27 AM
Michael Nemtsev
Hello Z,

By Visual Studio edition, 2002 for fw1.0, 2003 for fw1.1 and 2005 for fw2.0

Alternative way to point which FW version you project is compatible, but
in this case u can't use feautures that specific to the higher version of
FW. VS doesn't have support to them in that case

Z> Hi,
Z> On my PC I have multiple .NET frameworks selected (1.0, 1.1 and 2.0)
Z> In Visual Studio 2003, how do I select which one I use to build my
Z> project?
Z>
Z> Thanks
Z>
---
WBR,
Michael  Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Author
12 Apr 2006 5:38 AM
Mattias Sjögren
>On my PC I have multiple .NET frameworks selected (1.0, 1.1 and 2.0)
>In Visual Studio 2003, how do I select which one I use to build my project?

You don't, each version of Visual Studio targets a specific .NET
framework versions, and VS2003 will always use 1.1. You can set in the
project properties that your app supports 1.0, but it will still be
compiled against 1.1.


Mattias

--
Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Author
12 Apr 2006 6:47 AM
Cerebrus
Hi,

But it is possible to set VS 2002 to use the FW version 1.1 for a
particular project. For this you would need to set the
<supportedRuntime> and <requiredRuntime> tags in App.config. The order
is important here :

<configuration>
<startup>
   <requiredRuntime imageVersion="v1.0.3705" version="v1.0.3705" />
<!-- This is the min. requirement -->
   <supportedRuntime version="v1.1.4322" />  <!-- This will be
preferred -->
   <supportedRuntime version="v1.0.3705" />
</startup>

See this page : <http://www.gotdotnet.com/team/changeinfo/> for very
detailed information.

Regards,

Cerebrus.
Author
12 Apr 2006 10:13 AM
Patrice
AFAIK, this is what Mattias told, that is it allows to *run* the 1.0
executable build by VS 2002 under 1.1 but VS 2002 still *build* a 1.0
executable...

There is a MSBee projet that should allow to really build an executable
against a specific version but this is for VS 2005 and my guess is that in
this case you likely can't use some of the VS2005 features (wizards would
create anyway 2.0 source code).

--
Patrice

"Cerebrus" <zorg***@sify.com> a écrit dans le message de news:
1144824448.107025.60***@e56g2000cwe.googlegroups.com...
Show quote
> Hi,
>
> But it is possible to set VS 2002 to use the FW version 1.1 for a
> particular project. For this you would need to set the
> <supportedRuntime> and <requiredRuntime> tags in App.config. The order
> is important here :
>
> <configuration>
> <startup>
>   <requiredRuntime imageVersion="v1.0.3705" version="v1.0.3705" />
> <!-- This is the min. requirement -->
>   <supportedRuntime version="v1.1.4322" />  <!-- This will be
> preferred -->
>   <supportedRuntime version="v1.0.3705" />
> </startup>
>
> See this page : <http://www.gotdotnet.com/team/changeinfo/> for very
> detailed information.
>
> Regards,
>
> Cerebrus.
>

AddThis Social Bookmark Button