Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

How to configure .NET VS 2003 to use .net 2.0

Hi there,

I have .net visual studio 2003 installed on my windows 2003 machine,
along with .net 1.1 framework/sdk.

I'd to like to be able to run my app aslo against .net 2.0 (besides 1.1),
so I have downloaded .NET 2.0 framework and SDK, and have them
installed. Then I tried to modify file:
C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\vsvars32.bat

to switch from 1.1 to 2.0:
--
@SET FrameworkVersion=v1.1.4322
@SET FrameworkSDKDir=C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1
--
to:
----
@SET FrameworkVersion=v2.0.50727
@SET FrameworkSDKDir=C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v2.0
--

after refreshing the environment and restarting vs 2003, and rebuilding the app,
somehow the app is still linked to .net 1.1 SDK and loads .net 1.1 framework.

Could someone tell me if it is possible at all to get VS .net 2003 to work with
both .net 1.1 and 2.0, if so how can that be done in detail?

Thanks,

-jen w.
[1088 byte] By [jennywongus] at [2007-11-11 8:03:57]
# 1 Re: How to configure .NET VS 2003 to use .net 2.0
Jen,

VS 2003 works with .Net 1.1 and VS 2005 works with .Net 2.0.

You cannot get VS 2003 to work with .Net 2.0.

Kerry Moorman
kmoorman at 2007-11-11 21:48:05 >
# 2 Re: How to configure .NET VS 2003 to use .net 2.0
As Kerry mentioned, the Visual Studio development environment is hard wired to a specific version of the .NET Framework. However, it is possible to run your compiled application assembly under a different (forward compatible) version of the .NET Framework. How this is implemented will depend upon what type of application you are developing (ASP.NET, VB.NET or C#, etc).
pclement at 2007-11-11 21:49:05 >