I'm able to reproduce the problem and will create an internal issue for that. For a quick workaround, please apply the following steps:
ClientProfiles.razor
file, there is a @inherits statement as below, please create a manual file as below that matches this base component class:using Clients.Localization;
using Volo.Abp.AspNetCore.Components;
namespace Clients.Blazor;
public class ClientsComponentBase : AbpComponentBase
{
public ClientsComponentBase()
{
LocalizationResource = typeof(ClientsResource);
}
}
After this there is only one problem that should be left, and it's in your test project.
public class ProjectsTestConsts
{
public const string CollectionDefinitionName = "Projects collection";
}
Then, you should be able to build & run the application.
These two problems will be fixed in the next release. Best regards.
Hi sorry for the late response. I'll check and write you back asap.
Using AbpStudio 0.9.11 and AbpSuite 9.0.0, I'm encountering a lot of issues with unresolved references.
ABP Studio:
- Create new solution (Layered Blazor Server; MongoDb)
- Build and run => success
- Create new 'Clients' module (Layered Blazor Server; MongoDb)
- Build and run => success
- Import Clients module into solution (defaults)
- Build and run => success
- Open ABP Suite from Studio for Clients
- Create ClientProfile entity (few properties)
- Generate CRUD Page for ClientProfile
- Build Clients module => FAIL
// Project: Clients.Blazor // File: ClientProfiles.razor.cs error CS0115: 'ClientProfiles.OnInitializedAsync()':no sutiable method found to override error CS0115: 'ClientProfiles.OnAfterRenderAsync(bool)': no suitable method found to override error CS0246: The type of namespace name 'ClientsComponentBase' could not be found (are you missing a using directive or an assembly reference?) error CS0103: The name 'AuthorizationService' does not exist in the current context.
If it's possible can you share the content of the Imports.razor
file, please?
⚡ Update ABP CLI , ABP Studio and ABP Suite
dotnet tool update -g Volo.Abp.Studio.Cli --version 0.9.11
abp suite update --version 9.0.0
📗 Blog post
🔼 Migration guide
✏️ Feel free to report any bugs, issues, and problems.
When creating a new Blazor WebApp solution with Studio when it doesn't include the optional module SaaS (Multi-Tenant), the solution doesn't compile with the following error:
Dotnet build failed for the project "QLS.UnifiedPortal". Details: xxx\src\yyy.Blazor\yyyBlazorModule.cs(223,36): error CS0246: The type or namespace name 'SaasHostBlazorOptions' could not be found (are you missing a using directive or an assembly reference?) [xxx\src\yyy.Blazor\yyy.Blazor.csproj] xxx\src\yyy.Blazor\yyyBlazorModule.cs(234,53): error CS0103: The name 'SaasHostPermissions' does not exist in the current context [xxx\src\yyy.Blazor\yyy.Blazor.csproj]
Build FAILED. 0 Warning(s) 2 Error(s)
The solution options are: Solution Template: Application (Layered) UI Framework: Blazor WebApp UI Theme: LeptonX Mobile Framework: None Public Site: No Optional Modules: Audit Logging, FileManagement, Language Management, OpenIddict UI. Note: No SaaS (Multi-Tenant) Solution Structure: Not Tiered Database Provider: Entity Framework Core Additional Options: None
Create a solution similar to the above and including all of the optional module compiles susscessfully.
Thanks @Chris, we fixed the problem and it will be available with the next release. Regards.
Hi, you can use the following command to install the source-code for the module (with the angular files):
abp get-source Volo.Gdpr --old
Hi, can you try to install the related module with source code via ABP Studio (https://abp.io/docs/latest/studio/solution-explorer#replace-with-source-code)?
If you look at the first part of my problem, that is exactly what I did. And that is what causes the problem. Thanks for looking into this.
Hi, sorry for the late response. I'll check this asap. Regards.
Hi, can you try to install the related module with source code via ABP Studio (https://abp.io/docs/latest/studio/solution-explorer#replace-with-source-code)?