Monday, July 13, 2009

Using supportedRunTime Attribute.

we can configure our application to run under some specific version of .net framework.

If we won't provide this Attrubute.Runtime Will Automatically decide using
some predefined rules.

Rule-1: If version in which application is Build is present Application
Will run with that Version.

Rule-2:If version in which application is Build is NOT present.Then
Runtime will search for supportedRunTime attrubute.

a).if Attribute is NOT
present it will run With latest version available on the machine.

Rule-3:If version in which application is Build is NOT present.And
supportedRunTime is present in configuration file.

a).application will run
with version specified in supportedRunTime attribute.



This is how to specity Supported Runtime version in Configuration File.
<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
<supportedRuntime version="v1.0.3705"/>
</startup>
</configuration>