How to I confirm using .Net Framework 1.1 or 1.0?

  • Thread starter Thread starter YaYa
  • Start date Start date
Y

YaYa

Hello,

I install .Net Framework 1.0 and then install .Net Framework 1.1.
Now, How do I confirm my computer uses .Net Framework 1.1 not 1.0?

Thanks.
 
For Windows apps, it is the version you compile with. If you compile with
1.0 (Visual Studio .NET 2002), you have a Framework 1.0 app. If you compile
with 1.1 (Visual Studio .NET 2003), you have a Framework 1.1 app. The same
is true for all project types but web app and web service.

For web apps/services, the Framework version is dictated by one of two
things.

1. The version registered in IIS
2. The version specified in your config file.

The config file will override the registered version in IIS, as long as both
are installed.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Author: ADO.NET and XML: ASP.NET on the Edge

****************************************************************************
****
Think Outside the Box!
****************************************************************************
****
 
Does this mean that I have to recompile and redistribute a WinForms app to
all my users every time there's a new framework?

Jerry
 
Hi,
You can compile your application against any framework version. The
frameworks can co-exist side by side, so can VS.NET versions. It is only
that VS is locked down to one particular framework version.
You need not recompile your application and redistribute every time there is
a framework change, unless there is a breaking change in the newer version.
In most cases this might not be the case.
BTW, the app config file can contain elements that can govern which version
of .NET runtime is to be used by the application. Specifically the
supportedRuntime and the requiredRuntime elements.
The supportedRuntime can be used to indicate which version of rutime the app
supports and any app built with v1.1 should ideally specify the same.
The requiredRuntime should be used only if the application supports only
version 1.0 of the common language runtime.
For more info refer to MSDN doc:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpcontargetingnetframeworkversion.asp

Also, have a look at the links at
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconside-by-sideexecut
ion.asp?frame=true
 
Back
Top