简体   繁体   English

ASP.Net MVC 5中的未解析符号 - OWIN Startup.Auth

[英]Unresolved symbols in ASP.Net MVC 5 - OWIN Startup.Auth

I'm currently manually migrating a ASP.Net MVC 4 project to ASP.Net MVC 5 + WebAPI 2 and I'm struggling to get my OWIN Startup.Auth class even to compile. 我目前正在手动将ASP.Net MVC 4项目迁移到ASP.Net MVC 5 + WebAPI 2,我正在努力让我的OWIN Startup.Auth类甚至可以编译。

Can anyone point me to the NUGET packages that should resolve the symbols marked in red in the picture below? 任何人都可以指向我应该解决下图中红色标记的NUGET包吗?

UPDATE : Resolved by installing the packages mentioned by Dunken. 更新 :通过安装Dunken提到的包解决。 But I also had to change: 但我也不得不改变:

AuthenticationType = AuthenticationTypes.ApplicationCookie

to

AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie

在此输入图像描述

Try the following packages: 请尝试以下包:

Microsoft.AspNet.Identity.Core
Microsoft.AspNet.Identity.Owin

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM