Can you navigate to https://commercial.abp.io/my-organizations/ and get your API-key for your organization?
After obtaining your api-key, add nuget source by using the following command:
dotnet nuget add source <your_nuget_source>
Also, please ensure you've logged in via ABP Cli. (abp login <username> -p <password> -o <organization-name>
)
@Sturla and @EngincanV,
Running the abp build command did resolve the issue that I was facing. Thank you for your response and recommended solution.
Great to hear that!
Could it be we need to run
abp bundle
in our pipeline?
No, you don't need to add the abp bundle
command into your pipeline. I've reproduced this problem recently (and abp bundle
fixed it), I'll try to reproduce it again and write you back.
In meantime, you can try:
abp clean
dotnet build
abp bundle
these commands in order and try again. (I had this problem on local development and this was solved it)
Hi, can you run the abp bundle
command in your Blazor project and then re-run the project?
Hi, I examine your project and find a small problem. It seems your blazor project (TestModuleABlazorModule
) depends on your domain project (TestModuleADomainModule
) and it should not be like that. Instead, you should create an application service and use the ISettingManager
on it.
Then, use the application service interface instead the ISettingManager
.
For an example please check the below links:
1-) Using ISettingManager
in an application service -> https://github.com/abpframework/abp/blob/dev/modules/setting-management/src/Volo.Abp.SettingManagement.Application/Volo/Abp/SettingManagement/EmailSettingsAppService.cs#L13
2-) Using the related application service in the setting management group -> https://github.com/abpframework/abp/blob/dev/modules/setting-management/src/Volo.Abp.SettingManagement.Blazor/Pages/SettingManagement/EmailSettingGroup/EmailSettingGroupViewComponent.razor.cs#L17
Hi,
I tried using the Inject attribute and it still didn't work.
I've reproduced the error on a clean ABP Solution, here is the link: https://github.com/maksym-gryb/ABPTestSolution
Please try it out and let me know how we can resolve this issue in our codebase.
Thanks, I'll clone your repository and try to reproduce it.
Hi, this is a well-known issue and we fixed it. It will be available with the stable version (v6.0.0).
Thanks :-)
Thanks for reporting it.
https://github.com/abpframework/abp/tree/dev/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.Server/wwwroot/images/logo/leptonx -> you can add these logos (with the same folder structure) to your application to currently solve this problem.
Hi, this is a well-known issue and we fixed it. It will be available with the stable version (v6.0.0).
Hi, GithubRootUrl should be https://github.com/abpframework/abp/tree/{version}/docs/.
The module which uses the ISettingManager is as follows:
Can you use the Inject
attribute instead of constructor injection as below and try again:
public partial class NewsSettingGroupComponent
{
[Inject]
public ISettingManager SettingManager {get; set;}
}
Btw, to be able to use the
ISettingManager
in the blazor project, your project should depends on SettingManagement.Domain package (directly or indirectly).