加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net-core-mvc-2.0 – ASP .NET Core 2 MVC错误NU1202在VS 20

发布时间:2020-12-16 07:07:06 所属栏目:asp.Net 来源:网络整理
导读:我已经安装了VS2017 15.3.0和.NET Core 2.0,并在VS 2017上创建了一个默认的Web MVC应用程序,我收到了以下错误: Error NU1202 Package System.Threading.Overlapped 4.0.1 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). Package System
我已经安装了VS2017 15.3.0和.NET Core 2.0,并在VS 2017上创建了一个默认的Web MVC应用程序,我收到了以下错误:

Error NU1202

Package System.Threading.Overlapped 4.0.1 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). Package System.Threading.Overlapped 4.0.1 supports: netstandard1.3 (.NETStandard,Version=v1.3)

Error NU1202

Package System.IO.Compression 4.1.0 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). Package System.IO.Compression 4.1.0

supports:

  • monoandroid10 (MonoAndroid,Version=v1.0)

  • monotouch10 (MonoTouch,Version=v1.0)

  • net45 (.NETFramework,Version=v4.5)

  • netcore50 (.NETCore,Version=v5.0)

  • netstandard1.1 (.NETStandard,Version=v1.1)

  • netstandard1.3 (.NETStandard,Version=v1.3)

  • portable-net45+win8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile111)

  • win8 (Windows,Version=v8.0)

  • wpa81 (WindowsPhoneApp,Version=v8.1)

  • xamarinios10 (Xamarin.iOS,Version=v1.0)

  • xamarinmac20 (Xamarin.Mac,Version=v2.0)

  • xamarintvos10 (Xamarin.TVOS,Version=v1.0)

  • xamarinwatchos10 (Xamarin.WatchOS,Version=v1.0)

使用NET CLI使用以下命令会出现相同的错误:dotnet new mvc

我已经尝试过更新nuget:Install-Package NuGet.CommandLine -Version 4.3.0

但它不起作用.

所以我安装了dotnet core2,Visual Studio 2017更新了15.3.0和NuGet 4.3.0

我在这里错过了什么?

解决方法

我有一个类似的问题,虽然有不同的组件,and the suggestion from MS是运行

dotnet nuget locals all --clear

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读