我们的一个ASP.NET MVC 5 Web应用程序有以下web.config设置:
<system.web>
<compilation debug="true" targetFramework="4.6" />
<httpRuntime targetFramework="4.5" />
<!--... many other things -->
</system.web>
为什么有两个targetFramework设置并不清楚,似乎在针对4.6版本进行编译后尝试在4.5版本下运行是错误的...
很明显我漏掉了什么,但是是什么呢?