【发布时间】:2017-08-22 15:25:44
【问题描述】:
我已经安装了 VS2017 15.3.0 和 .NET Core 2.0 并在 VS 2017 上创建了一个默认的 Web MVC 应用程序,但出现以下错误:
错误 NU1202
Package System.Threading.Overlapped 4.0.1 与 netcoreapp2.0 (.NETCoreApp,Version=v2.0) 不兼容。包 System.Threading.Overlapped 4.0.1 支持:netstandard1.3 (.NETStandard,Version=v1.3)
错误 NU1202
Package System.IO.Compression 4.1.0 与 netcoreapp2.0 (.NETCoreApp,Version=v2.0) 不兼容。包 System.IO.Compression 4.1.0
支持:
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,版本=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
我在这里错过了什么?
【问题讨论】: