all groups > dotnet clr > february 2004 >
You're in the

dotnet clr

group:

How does an .NET know which version of framework to use



How does an .NET know which version of framework to use srini
2/27/2004 1:06:06 AM
dotnet clr: Hi
How does a .NET application know what version of the framework to use by default. For example I have framework version 1.0 and 1.1 on my machine. When I develope an App using VS.NET 2002 it uses framework 1.0. How does the app know it
Is this info stored in the assembly

REgards
Re: How does an .NET know which version of framework to use Vadym Stetsyak
2/27/2004 2:57:03 PM
the info is stored in the manifest i.e all the external assemblies are
identified by the version.

It means of your app was build with Asmb.dll (v1.0.23.0) then after
application starts runtime will search for Asmb.dll and it will also verify
its version.

[quoted text, click to view]
default. For example I have framework version 1.0 and 1.1 on my machine.
When I develope an App using VS.NET 2002 it uses framework 1.0. How does the
app know it.
[quoted text, click to view]

Re: How does an .NET know which version of framework to use Scott M.
2/28/2004 3:23:47 PM
Yes, it is stored in the assembly's manifest.

Assemblies made with VS.NET 2002 automatically point to the 1.0 Framework as
this was the only version available when it came out. Assemblies made with
VS.NET 2003 automatically point to the 1.1 version. There are utilities you
can use to point an assembly to whichever version you want.


[quoted text, click to view]
default. For example I have framework version 1.0 and 1.1 on my machine.
When I develope an App using VS.NET 2002 it uses framework 1.0. How does the
app know it.
[quoted text, click to view]

AddThis Social Bookmark Button