【问题标题】:ASP.NET Boilerplate .NET Core 2ASP.NET 样板 .NET Core 2
【发布时间】:2017-08-22 13:30:03
【问题描述】:

尝试将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'。'

【问题讨论】:

标签: c# .net asp.net-mvc .net-core aspnetboilerplate


【解决方案1】:

您应该等待 ABP v3.0。我们发布了 ABP v3.0.0-beta2。如果需要,您可以使用测试版。

您还需要更改解决方案:

幸运的是,我升级了解决方案模板。因此,您可以看到我所做的所有更改:

https://github.com/aspnetboilerplate/module-zero-core-template/pull/106/files

【讨论】:

  • 您知道 v3 的发布日期吗?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2017-10-12
  • 2016-10-07
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-02-04
  • 2016-05-14
相关资源
最近更新 更多