【问题标题】:Asp.NET web app insists on loading .NET 2.0Asp.NET web app坚持加载.NET 2.0
【发布时间】:2018-01-06 09:02:25
【问题描述】:

我有一个非常简单的项目,突然想加载 .NET 版本 2

web.config 中的<compilation> 标签包括targetFramework="4.6.1"

项目属性下的Target框架也设置为4.6.1

但 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>

【问题讨论】:

    标签: asp.net .net target-framework


    【解决方案1】:

    我通过更新解决方案文件中的目标框架解决了这个问题

    【讨论】:

      猜你喜欢
      • 2018-12-21
      • 2010-09-14
      • 1970-01-01
      • 1970-01-01
      • 2013-06-24
      • 2015-08-21
      • 1970-01-01
      • 2012-03-12
      • 1970-01-01
      相关资源
      最近更新 更多