I'm having some problems while learning to work with C#, more specifically with Asp Net MVC.
I saw a configuration snippet in
Web.config that left me a little confused, namely:
<compilation debug="true" targetFramework="4.6.2"/> <httpRuntime targetFramework="4.5"/>
As you can see, it seems that each has different
I would like to know:
- What is the difference between
- What does each of these settings affect in the case of the
As already answered by @Tetsuya Yamamoto in another question, briefly this is it:
compilation selects which version of the .NET Framework reference assemblies is used when performing the compilation.
httpRuntime to say the current project is designed to use .NET 4.5 runtime assemblies without recompiling existing project assemblies on the deploying machine before loading it into memory.
web.config serves to keep compatibility issues between changes from each version of the .NET Framework. And the difference between
httpRuntime belongs to each development and deployment environment.