【问题标题】:Asp.net Core 2.0.0 runtime error with Visual Studio 2017Visual Studio 2017 的 Asp.net Core 2.0.0 运行时错误
【发布时间】:2017-08-24 15:30:06
【问题描述】:

昨天我将 Visual Studio 更新到版本 15.3.1 并安装了 .NET Core 2.0 SDK。 我所有的 ASP.NET 核心项目(以 net461 为目标)现在都有这个运行时错误:

System.IO.FileLoadException: '无法加载文件或程序集'System.IO.FileSystem

重现步骤:

  1. 新建项目 > ASP.NET Core Web 应用程序 > Web 应用程序(模型-视图-控制器)> 确定
  2. 编辑 csproj,将 Target Framework 更改为 net461

<TargetFramework>net461</TargetFramework>

有人知道解决方法吗?

【问题讨论】:

标签: .net visual-studio asp.net-core visual-studio-2017


【解决方案1】:

完全卸载并重新安装解决了这个问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-08-05
    • 1970-01-01
    • 2017-09-16
    • 1970-01-01
    • 2017-07-05
    • 1970-01-01
    • 2017-04-02
    相关资源
    最近更新 更多