Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Usage of targetFramework in web.config
Message
De
29/01/2015 10:06:55
 
 
À
29/01/2015 09:28:30
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01614589
Message ID:
01614597
Vues:
20
This message has been marked as a message which has helped to the initial question of the thread.
>Anyone using targetFramework attribute of the compilation tag in web.config?
>
>I am interested to know what are your reasons for using it.
>
>If the .NET Framework installed on the server is 4.5.1 and that attribute is set to 4.0, is it correct to say that .NET Framework 4.5.1 will not be fully used and the application is forced to run in 4.0? Which means, if I need to use an attribute that is only supported in 4.5.1, having that attribute set like that, would it make the attribute useless in that case?

Yes. If you target, say, 4.0 then any attempt to use newer functionality in 4.5.1 will not be available. In most cases that mean that the app won't compile. In a few obscure cases you may just get different behaviour from that which was expected.

BTW, the settings in web.config are automatically updated if you change the 'Target Framework' in the 'Project Properties' page...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform