@andreking I guess you somehow made the tests dependent on another commercial package. That is the reason you are getting -42 exit code.
Here is the solution:
appsettings.json & appsettings.secrets.json files under test\Volo.Abp.LanguageManagement.TestBase\Volo\Abp\LanguageManagement folder.appsettings.json content:
{
}
appsettings.secrets.json content:
{
"AbpLicenseCode": "Your Abp License Code"
}
(You can find your license code in the main solution. Just copy from there.)
test\Volo.Abp.LanguageManagement.TestBase\Volo.Abp.LanguageManagement.TestBase.csproj file: <ItemGroup>
<None Remove="Volo/Abp/LanguageManagement/appsettings.json" />
<Content Include="Volo/Abp/LanguageManagement/appsettings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</Content>
<None Remove="Volo/Abp/LanguageManagement/appsettings.secrets.json" />
<Content Include="Volo/Abp/LanguageManagement/appsettings.secrets.json">
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
ConfigureServices method in test\Volo.Abp.LanguageManagement.TestBase\Volo\Abp\LanguageManagement\LanguageManagementTestBaseModule.cs file: var builder = new ConfigurationBuilder();
builder.AddJsonFile("Volo/Abp/LanguageManagement/appsettings.json", false);
builder.AddJsonFile("Volo/Abp/LanguageManagement/appsettings.secrets.json", true);
context.Services.ReplaceConfiguration(builder.Build());
(you may need to add Microsoft.Extensions.Configuration namespace)
Hi,
To reproduce the issue; i created a microservice solution, and added SaasService to AbpSuite. Then tried to generate CRUD page, but encountered several errors. I don't know what you have done to make it work with Suite. I said in the first reply, Suite doesn't support this officially. So we can't help you with that.
Also, can you try removing the project from suite, and add it again?
To clarify; You and your coworker has exactly the same files (same branch), but Suite doesn't work for him. Am i right?
Error message says: It couldn't find OnModelCreating method in the DbContext file. It is weird if you are using the exactly same files.
Be sure that installed ABP Suite version is same.
Also, Can you share the OnModelCreating method in SaasServiceDbContext?
Hi @mhdbazcashin,
Suite doesn't support code generation on AdministrationService, IdentityService & SaasService.
However, we are planning to support them as well in future versions.
Btw,
Have you set your Trial license organization as default in https://commercial.abp.io/my-organizations page? If so, please change it to the actual organization.
The logs are the same.
Can you share them?
Are you sure the Suite is installed currently?
abp-suite should be available after you run abp suite install.