将asp.net MVC从5.0.0-beta2更新到5.0.0-rc1

Inr*_*ego 5 c# asp.net asp.net-mvc asp.net-mvc-5 asp.net-identity

昨晚,我决定尝试将SignalR应用到我的应用程序,因为我使用MVC 5,我不得不使用SignalR的2.0 beta.

哦,男孩,什么时间.昨晚,微软还决定推出所有mvc 5相关软件包的rc1,并且更新打破了一些问题 - 主要是在beta2模板中的帐户控制器中.

public AccountController() 
{
    IdentityStore = new IdentityStoreManager();
    AuthenticationManager = new IdentityAuthenticationManager(IdentityStore);
}

public AccountController(IdentityStoreManager storeManager, IdentityAuthenticationManager authManager)
{
    IdentityStore = storeManager;
    AuthenticationManager = authManager;
}

public IdentityStoreManager IdentityStore { get; private set; }
public IdentityAuthenticationManager AuthenticationManager { get; private set; }
Run Code Online (Sandbox Code Playgroud)

IdentityStoreManager并且IdentityAuthenticationManager不再被认可.

有没有人成功迁移到rc1了?我找不到MS的任何文档或更新的模板.

Ola*_*ybø 7

更新以下nuget包:

  • Microsoft ASP.NET Identity EntityFramework version ="1.0.0-rc1"
  • Microsoft.Owin.Security version ="2.0.0-rc1"
  • Microsoft.Owin.Security.OAuth version ="2.0.0-rc1"

得到这些:

  • Microsoft.AspNet.Identity.Owin version ="1.0.0-rc1"
  • Microsoft.Owin.Host.SystemWeb version ="2.0.0-rc1"

然后,您的AccountController.cs文件中仍会有很多错误.但是现在你在项目中有类来修复它们,或者你可以获得我修复的AccountController.cs文件,它编译并运行应用程序,但是有一个地方(用todo评论:)我不确定关于.

您可以在我的github上的示例项目中下载我的AccountController.cs文件:https: //github.com/onybo/Asp.Net-Identity-RC1-sample-app