Targeting .net 4.0 Framework in Code

You can target .NET Framework version for your applications, either by setting the version in the properties for your project in Visual Studio Or you can simply specify the supported runtime with the Compilation element in your configuration file.

You can add below to your web.config file :

<compilation targetFramework="4.0"/>

Note : .Net Framework 4 does not automatically use its version of the common language runtime to run applications that are built with earlier versions of the .NET Framework.


Post a Comment


This is a personal weblog. The opinions expressed here represent my own and not those of my employer or anyone else. Should you have any questions or concerns please e-mail me at .

Copyright (c) 2010 @ All rights are reserved.Do Not Copy.

@ Learning