からASP.NETコアMVCのRC2のアップグレードに私は私のRC1版から持っている場合:アイデンティティエラーRC1
services.AddIdentity<User, Role>(options =>
{
// configure identity options
options.Password.RequireDigit = false;
options.Password.RequireLowercase = false;
options.Password.RequireUppercase = false;
options.Password.RequiredLength = 3;
options.User.AllowedUserNameCharacters = null;
})
.AddEntityFrameworkStores<JobsDbContext, int>()
.AddUserStore<UserStore<User, Role, JobsDbContext, int>>()
.AddRoleStore<RoleStore<Role, JobsDbContext, int>>()
.AddDefaultTokenProviders();
と私はラインの特にこの部分の最初の行でエラーを取得しています:
AddIdentity<User, Role>
エラーがある:
私はこれがエッジを出血である知っているが、誰がそこに存在する場合、誰がアイデアを持っているかもしれませんこれは私がすべての耳です。コールは次のメソッドまたはプロパティとの間に曖昧である:「Microsoft.Extensions.DependencyInjection.IdentityServi (Microsoft.Extensions.DependencyInjection.IServiceCollection、System.Action) 'および' Microsoft.Extensions.DependencyInjection.IdentityServiceCollectionExtensions.AddIdentity(Microsoft.Extensions.DependencyInjection.IServiceCollection、System.Action) 'JobsLedger..NETCoreApp、Version = v1 0.0 C:\ Users \ユーザーサイモン\ DEV \ JobsLedger-RC2-FIrstAttempt \ SRC \ JobsLedgerがアクティブStartup.cs 64 \
MVC 6 rc2がありません。これはちょうどASP.NET Core MVCと呼ばれています – Tseng