微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

asp.net-core-mvc-2.0 – ASP .NET Core 2 MVC错误NU1202在VS 2017和NET CLI上创建项目

我已经安装了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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐