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.

0 comments:

Post a Comment

Disclaimer

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 sharepointprogrammingblogger@gmail.com .

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

@ Learning SharePoint.com