S
Steve Franks
Does anyone know what establishes the framework an assembly will run under?
For example, when I look at my custom assembly (C# library) in the GAC, the
Runtime column shows it will run under the .NET framework version 1.1.4322.
How is the GAC determining/setting this? I did not explictly do anything in
my code or build options to specify this. On my machine I have frameworks
1.0, 1.1 as well as 2.0 beta.
My assembly was created using Visual Studio 2003 - does this have something
to do with it?
Now, what would happen if I tried to run that same assembly under framework
1.0? Would it run or error out?
Likewise I'm thinking that if I recompile my assembly under Visual Studio
2005 beta 2 that the runtime would change to v2.0. However, again, would
this mean that the assembly would not run on a machine that did not have
the 2.0 framework installed? I am not using any particular features that
are specific to 2.0 (or even 1.1 for that matter)?
Along these same lines, how does one use the latest version of VS.NET (say
2005 beta 2) and yet still make sure that their assembly will run on
framework 1.0?
Thank you!
Steve
For example, when I look at my custom assembly (C# library) in the GAC, the
Runtime column shows it will run under the .NET framework version 1.1.4322.
How is the GAC determining/setting this? I did not explictly do anything in
my code or build options to specify this. On my machine I have frameworks
1.0, 1.1 as well as 2.0 beta.
My assembly was created using Visual Studio 2003 - does this have something
to do with it?
Now, what would happen if I tried to run that same assembly under framework
1.0? Would it run or error out?
Likewise I'm thinking that if I recompile my assembly under Visual Studio
2005 beta 2 that the runtime would change to v2.0. However, again, would
this mean that the assembly would not run on a machine that did not have
the 2.0 framework installed? I am not using any particular features that
are specific to 2.0 (or even 1.1 for that matter)?
Along these same lines, how does one use the latest version of VS.NET (say
2005 beta 2) and yet still make sure that their assembly will run on
framework 1.0?
Thank you!
Steve