AlderCove的活动

  • ABP Framework version: v5.1.4
  • UI type: Angular / MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes

For the Web.Public MVC Project, we require certain menu items are available/unavailable based on the state of the user. I think the right approach is to use DI to inject the interface for the application service I want to use to get the data.

However, I can't add the interface to the constructor of the MenuContributor class because it would be required in the module class itself:

I've read the dependency injection section of the guide and think that I should be using property injection but it's not clear to me how I can get an instance of the interface: https://docs.abp.io/en/abp/5.2/Dependency-Injection#property-injection

Can you please provide some guidance on how to achieve this?

Thanks

Hi @maliming

I'd prefer not to share, are you unable to reproduce the error?

Thanks Jamie

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v5.1.4
  • UI type: MVC / Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"
  1. Created Language enum:
  2. Added extension property to Identity user:
  3. Added extension properties to the Dtos:
  4. Works correctly in the angular User create/edit form:

I want the user to be able to update this field too and available in the Account personal info tab.

On the separate Identity server project, I attempted to override the AccountProfilePersonalInfoManagementGroupViewComponent by:

  1. Creating a new Default.cshtml to include the new Language property
  2. Creating a new MyAccountProfilePersonalInfoManagementGroupViewComponent class that inherits from AccountProfilePersonalInfoManagementGroupViewComponent
  3. Creating a new MyPersonalInfoModel class that contains the Language property
  4. Override the InvokeAsync method in MyAccountProfilePersonalInfoManagementGroupViewComponent to map from ProfileDto to MyPersonalInfoModel
  5. Adding new AutoMapper Profile to the Identity Server project and creating the map from ProfileDto to MyPersonalInfoModel, including configuration to map the extra property to the Language property in MyPersonalInfoModel
  6. Configuring the AutoMapper profile in the module:

When I do all this I get the error above.

Can you please let me know the correct approach for extending the PersonalInfo model and UI and ensuring the user can update this property?

Thanks

Hi

I understand LeptonX will first be available for Angular and then versions for Blazor and MVC.

We have a requirement for a mobile web public app and are currently using MVC for the web public app website.

Are you considering how the theme will work with the public website and will it be possible to use the theme when it's generally available for MVC?

Do you have an ETA?

Thanks

OK. Thanks.

I assume this also applies to adding extra properties to CMS kit entities since I tried adding some to the blog post entity but it did not seem to work either?

The extra properties feature appears to be tied to the module extension system: https://docs.abp.io/en/abp/latest/Customizing-Application-Modules-Extending-Entities

You can then use the same extra properties system defined in the previous section to manipulate the property over the entity.

Can you recommend an approach for adding additional properties? Do I need to create a new entity with these properties, create my own service and override the UI? https://docs.abp.io/en/abp/latest/Customizing-Application-Modules-Extending-Entities#creating-a-new-entity-with-its-own-database-table-collection

v5.1.3 / MVC / Separate Identity server

We are trying to use the extension manager to add extra properties to CmsBlogPosts, but CmsKit does not appear in the list of modules:

The documentation indicates the feature is supported for all official modules wherever possible: https://docs.abp.io/en/abp/latest/Module-Entity-Extensions

Does the CmsKit modules support extensions?

Is the list above the exhaustive list of modules that do support the feature?

Thanks

related badly formed path issue for linux I think:

https://support.abp.io/QA/Questions/2209/Bugs--Issues-v5X#answer-9ad254be-2d53-a4ca-0fe9-3a0191e0d611

related badly formed path issue for linux I think:

https://support.abp.io/QA/Questions/2209/Bugs--Issues-v5X#answer-9ad254be-2d53-a4ca-0fe9-3a0191e0d611

I update the solution to use Volo.Abp.Identity.Pro.Application 5.0.1 and it now compiles, except for a missing method used by one of the tests: AbpApplicationFactory.CreateAsync

However, I experience the same issue building a docker image with this patch version as I did with version 5.1.2: https://support.abp.io/QA/Questions/2459/Docker-build-failure

Thank you for the tip.

I updated the CLI and SUITE to 5.0.2 and I am unable to build my solution, due to missing framework packages.

C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core>dotnet restore Determining projects to restore... Restored C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\src\Acs.Cts.Portal.DbMigrator\Acs.Cts.Portal.DbMigrator.csproj (in 13.75 sec). Restored C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\src\Acs.Cts.Portal.Web.Public\Acs.Cts.Portal.Web.Public.csproj (in 17.79 sec). C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\src\Acs.Cts.Portal.Application\Acs.Cts.Portal.Application.csproj : warning NU1603: Acs.Cts.Portal.Application depends on Volo.Abp.Account.Pro.Admin.Application (>= 5.0.2) but Volo.Abp.Account.Pro.Admin.Application 5.0.2 was not found. An approximate best match of Volo.Abp.Account.Pro.Admin.Application 5.1.1 was resolved. [C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\Acs.Cts.Portal.sln] C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\src\Acs.Cts.Portal.Application\Acs.Cts.Portal.Application.csproj : error NU1605: Detected package downgrade: Volo.Abp.Identity.Pro.Application from 5.1.1 to 5.0.2. Reference the package directly from the project to select a different version. [C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\Acs.Cts.Portal.sln] C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\src\Acs.Cts.Portal.Application\Acs.Cts.Portal.Application.csproj : error NU1605: Acs.Cts.Portal.Application -> Volo.Abp.Account.Pro.Admin.Application 5.1.1 -> Volo.Abp.Account.Pro.Shared.Application 5.1.1 -> Volo.Abp.Identity.Pro.Application (>= 5.1.1) [C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\Acs.Cts.Portal.sln] C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\src\Acs.Cts.Portal.Application\Acs.Cts.Portal.Application.csproj : error NU1605: Acs.Cts.Portal.Application -> Volo.Abp.Identity.Pro.Application (>= 5.0.2) [C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\Acs.Cts.Portal.sln] Failed to restore C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\src\Acs.Cts.Portal.Application\Acs.Cts.Portal.Application.csproj (in 19.01 sec). C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\test\Acs.Cts.Portal.Application.Tests\Acs.Cts.Portal.Application.Tests.csproj : warning NU1603: Acs.Cts.Portal.Application depends on Volo.Abp.Account.Pro.Admin.Application (>= 5.0.2) but Volo.Abp.Account.Pro.Admin.Application 5.0.2 was not found. An approximate best match of Volo.Abp.Account.Pro.Admin.Application 5.1.1 was resolved. [C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\Acs.Cts.Portal.sln] C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\test\Acs.Cts.Portal.Application.Tests\Acs.Cts.Portal.Application.Tests.csproj : error NU1605: Detected package downgrade: Volo.Abp.Identity.Pro.Application from 5.1.1 to 5.0.2. Reference the package directly from the project to select a different version. [C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\Acs.Cts.Portal.sln] C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\test\Acs.Cts.Portal.Application.Tests\Acs.Cts.Portal.Application.Tests.csproj : error NU1605: Acs.Cts.Portal.Application.Tests -> Acs.Cts.Portal.Application -> Volo.Abp.Account.Pro.Admin.Application 5.1.1 -> Volo.Abp.Account.Pro.Shared.Application 5.1.1 -> Volo.Abp.Identity.Pro.Application (>= 5.1.1) [C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\Acs.Cts.Portal.sln] C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\test\Acs.Cts.Portal.Application.Tests\Acs.Cts.Portal.Application.Tests.csproj : error NU1605: Acs.Cts.Portal.Application.Tests -> Acs.Cts.Portal.Application -> Volo.Abp.Identity.Pro.Application (>= 5.0.2) [C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\Acs.Cts.Portal.sln] Failed to restore C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\test\Acs.Cts.Portal.Application.Tests\Acs.Cts.Portal.Application.Tests.csproj (in 25.11 sec). C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\src\Acs.Cts.Portal.HttpApi.Host\Acs.Cts.Portal.HttpApi.Host.csproj : warning NU1603: Acs.Cts.Portal.Application depends on Volo.Abp.Account.Pro.Admin.Application (>= 5.0.2) but Volo.Abp.Account.Pro.Admin.Application 5.0.2 was not found. An approximate best match of Volo.Abp.Account.Pro.Admin.Application 5.1.1 was resolved. [C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\Acs.Cts.Portal.sln] C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\src\Acs.Cts.Portal.HttpApi.Host\Acs.Cts.Portal.HttpApi.Host.csproj : error NU1605: Detected package downgrade: Volo.Abp.Identity.Pro.Application from 5.1.1 to 5.0.2. Reference the package directly from the project to select a different version. [C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\Acs.Cts.Portal.sln] C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\src\Acs.Cts.Portal.HttpApi.Host\Acs.Cts.Portal.HttpApi.Host.csproj : error NU1605: Acs.Cts.Portal.HttpApi.Host -> Acs.Cts.Portal.Application -> Volo.Abp.Account.Pro.Admin.Application 5.1.1 -> Volo.Abp.Account.Pro.Shared.Application 5.1.1 -> Volo.Abp.Identity.Pro.Application (>= 5.1.1) [C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\Acs.Cts.Portal.sln] C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\src\Acs.Cts.Portal.HttpApi.Host\Acs.Cts.Portal.HttpApi.Host.csproj : error NU1605: Acs.Cts.Portal.HttpApi.Host -> Acs.Cts.Portal.Application -> Volo.Abp.Identity.Pro.Application (>= 5.0.2) [C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\Acs.Cts.Portal.sln] Failed to restore C:\Users\Jamie\Source\Repos\CTS_Portal2\apps\acs-portal\aspnet-core\src\Acs.Cts.Portal.HttpApi.Host\Acs.Cts.Portal.HttpApi.Host.csproj (in 28.23 sec). 12 of 17 projects are up-to-date for restore.

I manually updated the project references from 5.0.0 to 5.0.2, as it appears that the abp update command updates to the latest version, rather than the installed version of the cli and suite, which seems counterintuitive.

Is there a command that can update to a specified version?

Thanks

显示 74 个条目中的 51 到 60 个.
Made with ❤️ on ABP v8.2.0-preview Updated on 三月 25, 2024, 15:11