Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Update - Abp.AspNetZeroCore (+more) to v1.2.2, fails to build .core project #6599


User avatar
0
deltavision created

Hi,

updated nuget packages - and now I cannot build project:

Build on .core project - error:

_Error CS7036 There is no argument given that corresponds to the required formal parameter 'userOrganizationUnitRepository' of 'AbpUserStore<Role, User>.AbpUserStore(IUnitOfWorkManager, IRepository<User, long>, IRepository<Role>, IAsyncQueryableExecuter, IRepository<UserRole, long>, IRepository<UserLogin, long>, IRepository<UserClaim, long>, IRepository<UserPermissionSetting, long>, IRepository<UserOrganizationUnit, long>, IRepository<OrganizationUnitRole, long>)' ZZZZZ.Core D:\TFVC\ZZZZZ\src\ZZZZZ.Core\Authorization\Users\UserStore.cs 23

Best regards, Michael


7 Answer(s)
  • User Avatar
    0
    ryancyq created
    Support Team

    See breaking changes of Abp 4.2.0

    Breaking Changes #4251: Added NormalizedUserName and NormalizedEmailAddress to AbpUser and NormalizedName to AbpRole. #4193: Removed LastLoginTime from AbpUserBase and UserAccount. #3897: Implemented Organization Unit Roles.

    https://github.com/aspnetboilerplate/aspnetboilerplate/releases/tag/v4.2.0

    #3897: Implemented Organization Unit Roles.

    New Organization Unit Roles methods were added in AbpUserStore https://github.com/aspnetboilerplate/aspnetboilerplate/pull/4242

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    AspNet Zero template is updated but since you updated nuget packages on your own solution, you need to implement this change as well, see https://github.com/aspnetboilerplate/aspnetboilerplate/issues/3897#issuecomment-461415695

  • User Avatar
    0
    deltavision created

    Hi - still a "newbie" to this update things :-) sorry...

    how exactly should I update not only 3897 issue but also the other breaking changes?

    Regarding 3897 I have changed the code in UserStore.cs but how about the base "AbpUserStore"?

  • User Avatar
    0
    aaron created
    Support Team

    How to upgrade existing solution: https://github.com/aspnetzero/aspnet-zero/issues/96#issuecomment-268093697

  • User Avatar
    0
    deltavision created

    Hi - link is not working?

  • User Avatar
    0
    aaron created
    Support Team

    To access the ASP<span></span>.NET Zero private GitHub repositories, invite yourself to become a member of the ASP<span></span>.NET Zero organization using your GitHub username.

    https://aspnetzero.com/LicenseManagement

  • User Avatar
    0
    deltavision created

    Thank You,

    going til TFS way described in the links.