简体   繁体   English

带有身份框架的.net core 1.1 Web应用程序“无法还原……与……不兼容”

[英].net core 1.1 web app with Identity Framework “cannot restore…is not compatible with…”

My install of VS 2017 is up to date, and upon creating a new .NET Core 1.1 web app, with Identity (Individual user accounts) I get a slew of errors telling me that packages are incompatible. 我安装的VS 2017是最新的,并且在使用身份(个人用户帐户)创建新的.NET Core 1.1 Web应用程序时,出现了很多错误,告诉我软件包不兼容。 It would appear to me that something is seriously broken in the tooling for Identity Core. 在我看来,Identity Core的工具中出现了一些严重问题。 No updates are available. 没有可用的更新。 I've tried changing to different "netstandard..." and "netcoreapp..." targets in the .csproj but it doesn't fix it. 我尝试在.csproj中更改为不同的“ netstandard ...”和“ netcoreapp ...”目标,但无法解决。

If I create a separate project without Identity, it restores and builds as expected. 如果我创建一个没有Identity的单独项目,它将按预期还原和生成。

Here's the full output with my test project: 这是我的测试项目的完整输出:

Error Package System.Text.Encoding.CodePages 4.3.0 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). 错误包System.Text.Encoding.CodePages 4.3.0与netcoreapp1.1(.NETCoreApp,Version = v1.1)不兼容。 Package System.Text.Encoding.CodePages 4.3.0 supports: - monoandroid10 (MonoAndroid,Version=v1.0) - monotouch10 (MonoTouch,Version=v1.0) - netstandard1.3 (.NETStandard,Version=v1.3) - xamarinios10 (Xamarin.iOS,Version=v1.0) - xamarinmac20 (Xamarin.Mac,Version=v2.0) - xamarintvos10 (Xamarin.TVOS,Version=v1.0) - xamarinwatchos10 (Xamarin.WatchOS,Version=v1.0) 软件包System.Text.Encoding.CodePages 4.3.0支持:-monoandroid10(MonoAndroid,版本= v1.0)-monotouch10(MonoTouch,版本= v1.0)-netstandard1.3(.NETStandard,Version = v1.3)- xamarinios10(Xamarin.iOS,版本= v1.0)-xamarinmac20(Xamarin.Mac,版本= v2.0)-xamarintvos10(Xamarin.TVOS,版本= v1.0)-xamarinwatchos10(Xamarin.WatchOS,版本= v1.0 )
Error Package System.IO.Pipes 4.3.0 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). 错误软件包System.IO.Pipes 4.3.0与netcoreapp1.1(.NETCoreApp,Version = v1.1)不兼容。 Package System.IO.Pipes 4.3.0 supports: netstandard1.3 (.NETStandard,Version=v1.3) 软件包System.IO.Pipes 4.3.0支持:netstandard1.3(.NETStandard,Version = v1.3)
Error Package Microsoft.CodeAnalysis.Workspaces.Common 1.3.0 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). 错误包Microsoft.CodeAnalysis.Workspaces.Common 1.3.0与netcoreapp1.1(.NETCoreApp,Version = v1.1)不兼容。 Package Microsoft.CodeAnalysis.Workspaces.Common 1.3.0 supports: - net45 (.NETFramework,Version=v4.5) - netstandard1.3 (.NETStandard,Version=v1.3) - portable-net45+win8 (.NETPortable,Version=v0.0,Profile=Profile7) 软件包Microsoft.CodeAnalysis.Workspaces.Common 1.3.0支持:-net45(.NETFramework,Version = v4.5)-netstandard1.3(.NETStandard,Version = v1.3)-Portable-net45 + win8(.NETPortable,Version = V0.0,档案= Profile7)
Error One or more packages are incompatible with .NETCoreApp,Version=v1.1. 错误一个或多个软件包与.NETCoreApp,Version = v1.1不兼容。
Error Package Microsoft.CodeAnalysis.CSharp.Workspaces 1.3.0 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). 错误包Microsoft.CodeAnalysis.CSharp.Workspaces 1.3.0与netcoreapp1.1(.NETCoreApp,Version = v1.1)不兼容。 Package Microsoft.CodeAnalysis.CSharp.Workspaces 1.3.0 supports: - net45 (.NETFramework,Version=v4.5) - netstandard1.3 (.NETStandard,Version=v1.3) - portable-net45+win8 (.NETPortable,Version=v0.0,Profile=Profile7) 软件包Microsoft.CodeAnalysis.CSharp.Workspaces 1.3.0支持:-net45(.NETFramework,Version = v4.5)-netstandard1.3(.NETStandard,Version = v1.3)-Portable-net45 + win8(.NETPortable,Version = V0.0,档案= Profile7)
Error Package Microsoft.Composition 1.0.27 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). 错误包Microsoft.Composition 1.0.27与netcoreapp1.1(.NETCoreApp,Version = v1.1)不兼容。 Package Microsoft.Composition 1.0.27 supports: portable-net45+win8+wp8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile259) 软件包Microsoft.Composition 1.0.27支持:Portable-net45 + win8 + wp8 + wpa81(.NETPortable,Version = v0.0,Profile = Profile259)

Clearing NuGet cache did nothing. 清除NuGet缓存没有任何作用。 Deleting and re-creating the projects made the problem go away. 删除并重新创建项目可以解决问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 .NET Core Web应用程序可以使用.NET Framework类库吗? - Can a .NET Core Web app consume .NET Framework class libraries? 我是否需要在服务器上安装.Net 1.1 Framework才能在Visual Studio 2003中托管Web应用程序? - Do I need to Install .Net 1.1 Framework on server to host Web app in Visual Studio 2003? 使用Visual Studio 2015无法解析.NET Core 1.1中的项目 - Cannot resolve a project in .NET Core 1.1 using Visual Studio 2015 带有PCL的.NET Core 1.1应用程序,无法在Team Service上构建 - .NET Core 1.1 app with PCL, unable to build on Team services VS 2017 ASP.Net Core Web应用程序无法定位.Net Framework - VS 2017 ASP.Net Core Web Application cannot target .Net Framework 当 .Net Core Web App 面向完整的 .Net Framework 时,ASP.NET Core 标签助手的哪个类库? - Which Class Lib for ASP.NET Core tag helpers when .Net Core Web App targets Full .Net Framework? ASP.NET Core 应用程序发布:为依赖于框架的部署错误地生成了 web.config - ASP.NET Core app publish : web.config incorrectly generated for framework-dependant deployment 将 Web 应用项目添加到我的解决方案中,并且解决方案中的其他项目已经使用 .net 框架,我可以将 .net 核心用于新项目吗? - adding a web app project to my solution, and the other projects in the solution already use .net framework, can I use .net core for the new project? .net框架到.net Core - .net Framework to .net Core Visual Studio 2005和.Net framework 1.1 - Visual Studio 2005 and .Net framework 1.1
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM