[英]Asp.NET web app insists on loading .NET 2.0
I have a very simple project that suddenly wants to load .NET version 2 我有一个非常简单的项目,突然想加载.NET版本2
The <compilation>
tag in the web.config
includes targetFramework="4.6.1"
web.config
的<compilation>
标记包含targetFramework="4.6.1"
The Target framework under the project properties is also set to 4.6.1 项目属性下的目标框架也设置为4.6.1。
But the IISExpress instance shows version 2 但是IISExpress实例显示版本2
<?xml version="1.0"?>
<configuration>
<appSettings/>
<connectionStrings>
<add connectionString="xxx" name="x"/>
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.6.1"/>
<authentication mode="Windows"/>
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
</system.web>
</configuration>
我通过更新解决方案文件中的目标框架解决了这一问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.