当前位置: 首页 > 编程语言 > C#

将asp.netMVC从5.0.0-beta2更新到5.0.0-rc1Share

时间:2023-04-11 02:49:54 C#

将asp.netMVC从5.0.0-beta2更新到5.0.0-rc1昨晚,我决定尝试使用SignalR对于我的应用程序,因为我使用MVC5,所以我必须使用SignalR的2.0beta。哦,男孩什么时候。昨晚,微软还决定推出所有mvc5相关包的rc1,更新破坏了一些东西——主要是beta2模板中的帐户控制器。publicAccountController(){IdentityStore=newIdentityStoreManager();AuthenticationManager=newIdentityAuthenticationManager(IdentityStore);}publicAccountController(IdentityStoreManagerstoreManager,IdentityAuthenticationManagerauthManager){IdentityStore=storeManager;AuthenticationManager=authManager;}publicIdentityStoreManagerIdentityStore{get;私有集;}publicIdentityAuthenticationManagerAuthenticationManager{get;私有集;IdentityStoreManager和IdentityAuthenticationManager不再被识别。有没有人成功迁移到rc1?我找不到MS的任何文档或更新的模板。更新以下nuget包:获取这些:那么您的AccountController.cs文件中仍然会有很多错误。但是现在你的项目中有类来修复它们,或者你可以获得我修复的AccountController.cs文件,它编译并运行应用程序,但有一个地方(用todo评论:)我不确定。你可以在github上我的示例项目中下载我的AccountController.cs文件:https://github.com/onybo/Asp.Net-Identity-RC1-sample-appIdentityStoreManager现在叫IdentityStoreIdentityAuthenticationManager现在是IdentityManager这些类移动类型。查看以下提交以获取有关如何使AccountController工作的更多信息https://github.com/rustd/AspnetIdentitySample/commit/b09479a9e5c2d4ff16c459ce0e4105c5ac5302f4以上是C#学习教程:Updatingasp.netMVCfrom5.0.0-beta2to5.0如果.0-rc1分享的所有内容对你有用,需要进一步了解C#学习教程,希望大家多多关注。本文收集自网络,不代表立场。如涉及侵权,请点击右侧联系管理员删除。如需转载请注明出处: