Get this every time clicking on the Save and Generate button (even when it has been just built):
Could you give us specified information about your problem, so we can help you to solve this issue? I did not encounter this situation when I generated entities with Suite. I'm waiting for your details to help you.
Not sure if this is the place to report an error with ABP commercial...
I created a solution with ABP Studio and it cannot add the initial database migration.
- Template: app
- Created ABP Studio Version: 0.9.13
- Tiered: Yes
- Multi-Tenancy: Yes
- UI Framework: blazor-server
- Theme: leptonx
- Theme Style: system
- Database Provider: ef
- Database Management System: sqlserver
- Separate Tenant Schema: Yes
- Mobile Framework: maui
- Public Website: Yes
- Include Tests: Yes
- Optional Modules:
- GDPR
- FileManagement
- TextTemplateManagement
- LanguageManagement
- AuditLogging
- SaaS
- Chat
- OpenIddictAdmin
Errors in ABP Studio:
19:27:54.359 Information Starting task execution: "Database synchronization" 19:27:54.359 Information Starting task execution: "Installing client side libraries" 19:27:54.362 Information Starting task execution: "Generating Signing-Certificate for AuthServer" 19:27:54.362 Information Starting task execution: "Creating TLS Secrets" 19:28:00.166 Information Completed task execution: "Generating Signing-Certificate for AuthServer" 19:28:01.090 Information Completed task execution: "Creating TLS Secrets" 19:28:23.857 Error Build started... Build failed. Use dotnet build to see the errors. 19:28:23.859 Information Failed task execution: "Database synchronization | Creating initial migrations" 19:28:23.859 Information ERROR: "An error has occured!" 19:28:23.859 Information ERROR DETAILS: "Failed to add migration Initial.
This is the error:
'EntityTypeBuilder<Book>' does not contain a definition for 'ConfigureByConvention' and no accessible extension method 'ConfigureByConvention' accepting a first argument of type 'EntityTypeBuilder<Book>' could be found (are you missing a using directive or an assembly reference?)
It was solved by adding the using directive in EntityFrameworkCore\AppDbContextBase.cs class:
using Volo.Abp.EntityFrameworkCore.Modeling;
Hello :) It will be fixed on the next ABP Studio version. Thank you for your contribution.
Hi, I am trying to create a new blazor maui hybrid project with abpstudio v9 and get error at the bundle step. After many hours of digging this is what I concluded, it is an issue with the Volo.Abp.Account.Pro.Public.MauiBlazor package. Please see log from dotnet restore:
Unable to find package Volo.Abp.Account.Pro.Public.MauiBlazor. No packages exist with this id in source(s): nuget.abp.io, nuget.org. PackageSourceMapping is enabled, the following source(s) were not considered: C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages.All other abpio packages seem to restore fine. This is preventing me from using the hybrid project type
Using abpstudio 0.9.15, Windows 11
Not sure if anyone else faces this issue?
Hi, I did not get the same problem when I created a Maui Blazor project. Can you send me the configuration of your solution from here? This helps me to understand how you create your project, and help you quickly.
Hi, I am trying to create a new blazor maui hybrid project with abpstudio v9 and get error at the bundle step. After many hours of digging this is what I concluded, it is an issue with the Volo.Abp.Account.Pro.Public.MauiBlazor package. Please see log from dotnet restore:
Unable to find package Volo.Abp.Account.Pro.Public.MauiBlazor. No packages exist with this id in source(s): nuget.abp.io, nuget.org. PackageSourceMapping is enabled, the following source(s) were not considered: C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages.All other abpio packages seem to restore fine. This is preventing me from using the hybrid project type
Using abpstudio 0.9.15, Windows 11
Not sure if anyone else faces this issue?
Hi, I did not get the same problem when I created a Maui Blazor project. Can you send me the configuration of your solution from here? This helps me to understand how you create your project, and help you quickly.
- Template: app
- Created ABP Studio Version: 0.9.15
- Tiered: No
- Multi-Tenancy: Yes
- UI Framework: maui-blazor
- Theme: leptonx
- Theme Style: system
- Database Provider: ef
- Database Management System: sqlserver
- Separate Tenant Schema: No
- Mobile Framework: maui
- Public Website: No
- Include Tests: Yes
Error when trying to build:
C:\Users\x\source\repos\AbpSolution3\src\AbpSolution3.MauiBlazor\AbpSolution3.MauiBlazor.csproj : error NU1101: Unable to find package Volo.Abp.Account.Pro.Public.MauiBlazor. No packages exist with this id in source(s): nuget.abp.io, nuget.org. PackageSourceMapping is enabled, the following source(s) were not considered: C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages.
Can you try dotnet clean
& abp clean
commands before running the build command?