Selecting from multiple .NET versions

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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 Nietzsch
 
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
 
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.
 
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).
 
Back
Top