How will you specify what version of the framework your application is targeting?

 Posted by Tripati_tutu on 10/21/2010 | Category: ASP.NET Interview questions | Views: 2309 | Points: 40
Answer:

In Asp.Net 4.0 a new element "targetFramework" of compilation tag (in Web.config file) lets you specify the framework version in the web.config file as

<?xml version="1.0"?>

<configuration>
<system.web>
<compilation targetFramework="4.0" />
</system.web>
</configuration>


It only lets you target the .NET Framework 4.0 and later versions.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response