Groups | Blog | Home
all groups > visual studio .net ide > february 2004 >

visual studio .net ide : Selectively build .NET components with different Framework versions


Tim Mavers
2/25/2004 1:04:07 PM
I am currently using Visual Studio.NET 2003 and recently was assigned a
project to "clean up" that requires that it be built/run under .NET 1.0
(sp2).

Since VS.NET 2003 includes a much newer version (I am currently using
v1.1.4322).

I am wondering if there is a way I can selectively set the "Framework
version" to compile with. I am wondering if this is possible, as coming
from a Java background, this is quite simple to do with any decent Java IDE.

I searched through VS.NET's options and there didn't seem to be a way to
do it.

On that note, is there a way I can install .NET 1.0 sp2 (I already have
another .NET framework installed: v1.0.3705 - I am not sure if this is
it), and manually build from the command line?

The VS.NET installation process is so fragile (I have had it error out
in the middle sometimes and have been forced to reinstall the OS just to
get it to install). This hasn't happened for quite some time, but I
don't want to try it again (i.e. am very leary of uninstalling VS.NET
2003 and installing the original VS.NET).

Ed Kaim [MSFT]
3/3/2004 1:56:25 AM
Visual Studio .NET 2002 only supports the .NET Framework 1.0.
Visual Studio .NET 2003 only supports the .NET Framework 1.1.

There is an article on configuring assemblies to use specific versions of
the runtime at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpcontargetingnetframeworkversion.asp.
This would be useful if you build a .NET Framework 1.0 app and want it to
run on the .NET Framework 1.1 or vice versa.

[quoted text, click to view]

AddThis Social Bookmark Button