ASP .NET Core 2 MVC错误NU1202在VS 2017和NET CLI上创建项目 [英] ASP .NET Core 2 MVC error NU1202 creating project on VS 2017 and NET CLI

查看:508
本文介绍了ASP .NET Core 2 MVC错误NU1202在VS 2017和NET CLI上创建项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已安装VS2017 15.3.0和.NET Core 2.0,并在VS 2017上创建了默认的Web MVC应用程序,但出现以下错误:

I have installed VS2017 15.3.0 and .NET Core 2.0 and have created a default Web MVC application on VS 2017 and I got the following errors:

错误NU1202

Error NU1202

包System.Threading.Overlapped 4.0.1与netcoreapp2.0(.NETCoreApp,Version = v2.0)不兼容.软件包System.Threading.Overlapped 4.0.1支持:netstandard1.3(.NETStandard,Version = v1.3)

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)

错误NU1202

软件包System.IO.Compression 4.1.0与netcoreapp2.0(.NETCoreApp,Version = v2.0)不兼容.打包System.IO.Compression 4.1.0

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

支持:

  • monoandroid10(MonoAndroid,Version = v1.0)

  • monoandroid10 (MonoAndroid,Version=v1.0)

monotouch10(MonoTouch,Version = v1.0)

monotouch10 (MonoTouch,Version=v1.0)

net45(.NETFramework,Version = v4.5)

net45 (.NETFramework,Version=v4.5)

netcore50(.NETCore,Version = v5.0)

netcore50 (.NETCore,Version=v5.0)

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

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

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

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

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

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

win8(Windows,Version = v8.0)

win8 (Windows,Version=v8.0)

wpa81(WindowsPhoneApp,Version = v8.1)

wpa81 (WindowsPhoneApp,Version=v8.1)

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

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

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

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

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

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

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

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

使用NET CLI和以下命令时会发生相同的错误:dotnet new mvc

The same errors occours using NET CLI with the command: dotnet new mvc

我尝试更新nuget:安装包NuGet.CommandLine -Version 4.3.0

I've tried update nuget: Install-Package NuGet.CommandLine -Version 4.3.0

但这是行不通的.

所以我已经安装了dotnet core2,并且安装了Visual Studio 2017版本15.3.0和NuGet 4.3.0

So I have dotnet core2 installed, with Visual Studio 2017 with update 15.3.0 and NuGet 4.3.0

我在这里想念什么?

推荐答案

我遇到了类似的问题,尽管使用了不同的程序集,

I had a similar issue, albeit with different assemblies, and the suggestion from MS was to run the following command in the Package Manager Console:

PM> dotnet nuget locals all --clear

这篇关于ASP .NET Core 2 MVC错误NU1202在VS 2017和NET CLI上创建项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆