卸载OWIN和身份包 [英] Uninstall OWIN and Identity packages
问题描述
几个月前,我创建了一个ASP.NET MVC项目,我用默认的鉴别选项创建它:个人用户帐户,不是故意的。
Several months ago I created an ASP.NET MVC project and I created it with the default authentification option: "Individual User Account", not on purpose.
我的项目运行良好,但现在我不需要任何的鉴别方法,所以我不需要身份和OWIN包。
My project runs well now but I don't need any authentification methods and so I don't need the Identity and OWIN packages.
有没有干净的方式来删除所有这些?
未通过右键任何其他功能所需要的那些包?
Is there a clean way to delete all of those? Those packages are not needed by any other features right?
THX!
推荐答案
这是简单的只是一些卸载的删除一些文件。
在包先卸载以下的软件包管理控制台:
It is simple just some uninstalling an removing some files. First uninstall following package in package manage console:
PM> uninstall-Package Microsoft.Owin.Security.Facebook
PM> uninstall-Package Microsoft.Owin.Security.Google
PM> uninstall-Package Microsoft.Owin.Security.MicrosoftAccount
PM> uninstall-Package Microsoft.Owin.Security.Twitter
PM> uninstall-Package Microsoft.Owin.Host.SystemWeb
PM> uninstall-Package Microsoft.AspNet.Identity.EntityFramework
PM> uninstall-Package Microsoft.AspNet.Identity.Owin
如果一切发展顺利,你的项目必须清理与以下packeges:
If everything goes right your project must clean up with following packeges:
Microsoft.AspNet.Identity.Core
Microsoft.AspNet.Identity.EntityFramework
Microsoft.AspNet.Identity.Owin
Microsoft.Owin
Microsoft.Owin.Host.SystemWeb
Microsoft.Owin.Security
Microsoft.Owin.Security.Cookies
Microsoft.Owin.Security.Facebook
Microsoft.Owin.Security.Google
Microsoft.Owin.Security.MicrosoftAccount
Microsoft.Owin.Security.OAuth
Microsoft.Owin.Security.Twitter
Owin
因此,如果有人仍然存在简单的卸载它们也。
So if anyone still exist simply uninstall them also.
现在,你可以删除以下从项目文件:
Now you could remove following files from your project:
App_Start\IdentityConfig.cs
App_Start\Startup.Auth.cs
Models\IdentityModels.cs
Startup.cs
这篇关于卸载OWIN和身份包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!