asp-net core2新web项目问题
asp-net core2 new web projects issue
我正在尝试创建一个新的 ASP-Net core2 MVC 项目,但该项目创建时出现构建错误
Error NU1202 Package System.Diagnostics.TraceSource 4.0.0 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0).
和
Error NU1202 Package System.Runtime.Serialization.Formatters 4.3.0 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0)
有很多 NuGet 包兼容性问题,如屏幕截图所示
我安装了 dotnet core2,Visual Studio 版本 15.3.0 和 NuGet 4.1.0
我在这里错过了什么?
你有 NuGet 4.1.0 很奇怪,因为 VS 2017“15.3”应该随 NuGet 4.3.0 一起提供。
我尝试创建新项目并拥有与您相同的包,没有任何问题,但我安装了 Nuget 4.3.0。
尝试更新您的 Nuget 版本,因为目前只有 Nuget 4.3.0 完全支持 Standard 2.0/.NET Core 2.0。
我正在尝试创建一个新的 ASP-Net core2 MVC 项目,但该项目创建时出现构建错误
Error NU1202 Package System.Diagnostics.TraceSource 4.0.0 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0).
和
Error NU1202 Package System.Runtime.Serialization.Formatters 4.3.0 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0)
有很多 NuGet 包兼容性问题,如屏幕截图所示
我安装了 dotnet core2,Visual Studio 版本 15.3.0 和 NuGet 4.1.0
我在这里错过了什么?
你有 NuGet 4.1.0 很奇怪,因为 VS 2017“15.3”应该随 NuGet 4.3.0 一起提供。 我尝试创建新项目并拥有与您相同的包,没有任何问题,但我安装了 Nuget 4.3.0。
尝试更新您的 Nuget 版本,因为目前只有 Nuget 4.3.0 完全支持 Standard 2.0/.NET Core 2.0。