尝试将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();
异常详情
System.TypeLoadException:'无法从程序集'Microsoft.AspNetCore.Authentication,Version = 2.0.0.0,Culture = Neutral,PublicKeyToken = adb9793829ddae60'加载类型'Microsoft.AspNetCore.Authentication.SharedAuthenticationOptions'。'