tch*_*dze 4 .net c# asp.net-mvc .net-core aspnetboilerplate
尝试将ASP.NET Boilerplate项目升级.NET Core 1.x到.NET Core 2.0
解决方案构建成功,但在Startup.ConfigureServices方法中抛出异常
services.AddAbpIdentity<Tenant, User, Role, SecurityStampValidator>(
options => {})
.AddUserManager<UserManager>()
.AddRoleManager<RoleManager>()
.AddSignInManager<SignInManager>()
.AddClaimsPrincipalFactory<UserClaimsPrincipalFactory>()
.AddDefaultTokenProviders();
Run Code Online (Sandbox Code Playgroud)
例外细节
System.TypeLoadException: '从组件 ' '未能加载类型' Microsoft.AspNetCore.Authentication.SharedAuthenticationOptions Microsoft.AspNetCore.Authentication,版本= 2.0.0.0,文化=中性公钥= adb9793829ddae60'.'
你应该等待ABP v3.0.我们发布了ABP v3.0.0-beta2.如果需要,您可以使用测试版.
您还需要更改解决方案:
幸运的是,我升级了解决方案模板.所以,你可以看到我所做的所有改变:
https://github.com/aspnetboilerplate/module-zero-core-template/pull/106/files
| 归档时间: |
|
| 查看次数: |
1082 次 |
| 最近记录: |