Hi, EngincanV Sorry for pushing.. any news?
Hi, EngincanV We are blocked with our solution due to this issue. Any updates on this?
Hi, EngincanV I did build. See my Step 4. Graph build. OK I can not add new Entity to [DemoSolution2] using ABP Suite. After adding it gives me error and I can not build using graph due to errors in module. So you did not answer my quition: why my module [NewModule] is impacted if I am adding entity into [DemoSolution2]?
I will share solution soon.
Hi, EngincanV Please find below steps I did with new solution and got again same error:
Create new [DemoSolution2] - Single layered.
Add [NewModule] - DDD Module
Import and Install [NewModule] into [DemoSolution2]
Open APB Suite. Select [DemoSolution2]
Add new Entity [Promotion] with one property [Title]. Click "Save and generate" -> Failed. Error below.
My question: Why some program code about [Promotion] are added into [NewModule]? I am trying to add it into [DemoSolution2], so why cli trying to add something into module?
error: `16:53:15.518 Information Starting task execution: "Building: DemoSolution2" 16:53:17.290 Information CLI command executed. Command: "dotnet build -v:q /property:WarningLevel=0 /clp:ErrorsOnly /graphBuild" Working directory: "C:\Temp\DemoSolution2" CommandResult { ExitCode: 1, IsSuccess: False, StartTime: 03/26/2025 16:53:15 +02:00, ExitTime: 03/26/2025 16:53:17 +02:00, RunTime: 00:00:01.7670903 } 16:53:17.290 Information Failed task execution: "Building: DemoSolution2" 16:53:17.290 Information ERROR: "An error has occured!" 16:53:17.290 Information ERROR DETAILS: "Dotnet build failed for the project "DemoSolution2". Details: C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\Controllers\Promotions\PromotionController.Extended.cs(17,65): error CS0246: The type or namespace name 'IPromotionsAppService' could not be found (are you missing a using directive or an assembly reference?) [C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\NewModule.HttpApi.csproj] C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\Controllers\Promotions\PromotionController.Extended.cs(19,36): error CS0246: The type or namespace name 'IPromotionsAppService' could not be found (are you missing a using directive or an assembly reference?) [C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\NewModule.HttpApi.csproj] C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\Controllers\Promotions\PromotionController.cs(28,72): error CS0246: The type or namespace name 'GetPromotionsInput' could not be found (are you missing a using directive or an assembly reference?) [C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\NewModule.HttpApi.csproj] C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\Controllers\Promotions\PromotionController.cs(28,44): error CS0246: The type or namespace name 'PromotionDto' could not be found (are you missing a using directive or an assembly reference?) [C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\NewModule.HttpApi.csproj] C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\Controllers\Promotions\PromotionController.cs(35,29): error CS0246: The type or namespace name 'PromotionDto' could not be found (are you missing a using directive or an assembly reference?) [C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\NewModule.HttpApi.csproj] C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\Controllers\Promotions\PromotionController.cs(41,55): error CS0246: The type or namespace name 'PromotionCreateDto' could not be found (are you missing a using directive or an assembly reference?) [C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\NewModule.HttpApi.csproj] C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\Controllers\Promotions\PromotionController.cs(41,29): error CS0246: The type or namespace name 'PromotionDto' could not be found (are you missing a using directive or an assembly reference?) [C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\NewModule.HttpApi.csproj] C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\Controllers\Promotions\PromotionController.cs(48,64): error CS0246: The type or namespace name 'PromotionUpdateDto' could not be found (are you missing a using directive or an assembly reference?) [C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\NewModule.HttpApi.csproj] C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\Controllers\Promotions\PromotionController.cs(48,29): error CS0246: The type or namespace name 'PromotionDto' could not be found (are you missing a using directive or an assembly reference?) [C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\NewModule.HttpApi.csproj] C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\Controllers\Promotions\PromotionController.cs(20,19): error CS0246: The type or namespace name 'IPromotionsAppService' could not be found (are you missing a using directive or an assembly reference?) [C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\NewModule.HttpApi.csproj] C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\Controllers\Promotions\PromotionController.cs(22,40): error CS0246: The type or namespace name 'IPromotionsAppService' could not be found (are you missing a using directive or an assembly reference?) [C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\NewModule.HttpApi.csproj]
Build FAILED. 0 Warning(s) 11 Error(s)
Time Elapsed 00:00:01.55
Workload updates are available. Run dotnet workload list
for more information."
16:53:17.290 Information Exception of type 'Volo.Abp.Studio.AbpStudioException' was thrown.
16:53:17.290 Information Code:AbpStudio:DotnetBuildFailed
16:53:17.290 Information Details:
16:53:17.291 Information ---------- Exception Data ----------
ProjectName = DemoSolution2
Details = C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\Controllers\Promotions\PromotionController.Extended.cs(17,65): error CS0246: The type or namespace name 'IPromotionsAppService' could not be found (are you missing a using directive or an assembly reference?) [C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\NewModule.HttpApi.csproj]
C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\Controllers\Promotions\PromotionController.Extended.cs(19,36): error CS0246: The type or namespace name 'IPromotionsAppService' could not be found (are you missing a using directive or an assembly reference?) [C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\NewModule.HttpApi.csproj]
C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\Controllers\Promotions\PromotionController.cs(28,72): error CS0246: The type or namespace name 'GetPromotionsInput' could not be found (are you missing a using directive or an assembly reference?) [C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\NewModule.HttpApi.csproj]
C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\Controllers\Promotions\PromotionController.cs(28,44): error CS0246: The type or namespace name 'PromotionDto' could not be found (are you missing a using directive or an assembly reference?) [C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\NewModule.HttpApi.csproj]
C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\Controllers\Promotions\PromotionController.cs(35,29): error CS0246: The type or namespace name 'PromotionDto' could not be found (are you missing a using directive or an assembly reference?) [C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\NewModule.HttpApi.csproj]
C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\Controllers\Promotions\PromotionController.cs(41,55): error CS0246: The type or namespace name 'PromotionCreateDto' could not be found (are you missing a using directive or an assembly reference?) [C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\NewModule.HttpApi.csproj]
C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\Controllers\Promotions\PromotionController.cs(41,29): error CS0246: The type or namespace name 'PromotionDto' could not be found (are you missing a using directive or an assembly reference?) [C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\NewModule.HttpApi.csproj]
C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\Controllers\Promotions\PromotionController.cs(48,64): error CS0246: The type or namespace name 'PromotionUpdateDto' could not be found (are you missing a using directive or an assembly reference?) [C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\NewModule.HttpApi.csproj]
C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\Controllers\Promotions\PromotionController.cs(48,29): error CS0246: The type or namespace name 'PromotionDto' could not be found (are you missing a using directive or an assembly reference?) [C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\NewModule.HttpApi.csproj]
C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\Controllers\Promotions\PromotionController.cs(20,19): error CS0246: The type or namespace name 'IPromotionsAppService' could not be found (are you missing a using directive or an assembly reference?) [C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\NewModule.HttpApi.csproj]
C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\Controllers\Promotions\PromotionController.cs(22,40): error CS0246: The type or namespace name 'IPromotionsAppService' could not be found (are you missing a using directive or an assembly reference?) [C:\Temp\DemoSolution2\newmodule\src\NewModule.HttpApi\NewModule.HttpApi.csproj]
Build FAILED. 0 Warning(s) 11 Error(s)
Time Elapsed 00:00:01.55
Workload updates are available. Run dotnet workload list
for more information.`
Hi, EngincanV I can not understand your answers... I will try ask different way. I am using only ABP Suite to make all Entities. I never write any code as all parts are generated automatically, and I can create all needed Entities with properties using ABP Suite only. I am not dealing with Visual Studio as it was not part of my duties :)
As I mentioned I did Step 6 in ABP Suite. I created new Entity with properties. And then I want to run dotnet ef database update
to have tables in database, but I have no migration file generated. So I can not create tables. So please provide steps I must do after my Step 6.
Hi, EngincanV So I need some example how to build db migration file for entities inside Modules. May you show some example code here. For Example I want to add new entity [Product] with properties [Title], [Price]. So I migration files will be look like?
Hi, EngincanV I created new Entity [Promotion] in [DemoSolution] and NOT in [FirstModule]. Issus is during adding new Entity to [DemoSolution].
Hi, EngincanV But I am talking about DB migrations. Suite knows Entity and all relations within one module (and there are no cross-module entities relations). So why it can not generate db migrations? Is it plans for such in future? We are building solution to separate some business logic in different modules, so a lot of new Entities are planned inside Modules, and to build always manually it would be a lot of operational risks.
Hi, EngincanV Yes, we read this tutorial. But how it is related? You did not answer about migration files? how can we generate migrations for new Entities which are created in Modules? Is it some bug or it should be done always manually? If it is manual process, so what is then reason to pay for Suite... a lot of logic will be in Modules.
And, yes we did changes mentioned in #20827, with some fixes in generated code it's working now.
Awaiting answer on first issue.