Activities of "viktor"

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:

  1. Create new [DemoSolution2] - Single layered.

  2. Add [NewModule] - DDD Module

  3. Import and Install [NewModule] into [DemoSolution2]

  4. Graph build. OK

  5. Open APB Suite. Select [DemoSolution2]

  6. 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 All steps are described in https://abp.io/support/questions/9011/No-db-migrations-for-Entities-in-Modules because this different kind of issue I created separate ticket. Yes, I created new Entity [Promotion] in [DemoSolution] and click "Save and generate":

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.

Hi, steps to reproduce:

  1. Create new solution [DemoSolution]
  2. Add new Module [FirstModule] -> Install module to [DemoSolution]. Graph Build. OK.
  3. Create new Entity in [main]. Failed. Error on build. Errors are in [FirstModule].

09:19:29.691 Information Starting task execution: "Building: DemoSolution" 09:19:31.503 Information CLI command executed. Command: "dotnet build -v:q /property:WarningLevel=0 /clp:ErrorsOnly /graphBuild" Working directory: "D:\DemoSolution" CommandResult { ExitCode: 1, IsSuccess: False, StartTime: 03/24/2025 09:19:29 +02:00, ExitTime: 03/24/2025 09:19:31 +02:00, RunTime: 00:00:01.8069407 } 09:19:31.503 Information Failed task execution: "Building: DemoSolution" 09:19:31.503 Information ERROR: "An error has occured!" 09:19:31.503 Information ERROR DETAILS: "Dotnet build failed for the project \"DemoSolution\". Details: D:\DemoSolution\firstmodule\src\FirstModule.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?) [D:\DemoSolution\firstmodule\src\FirstModule.HttpApi\FirstModule.HttpApi.csproj] D:\DemoSolution\firstmodule\src\FirstModule.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?) [D:\DemoSolution\firstmodule\src\FirstModule.HttpApi\FirstModule.HttpApi.csproj] D:\DemoSolution\firstmodule\src\FirstModule.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?) [D:\DemoSolution\firstmodule\src\FirstModule.HttpApi\FirstModule.HttpApi.csproj] D:\DemoSolution\firstmodule\src\FirstModule.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?) [D:\DemoSolution\firstmodule\src\FirstModule.HttpApi\FirstModule.HttpApi.csproj] D:\DemoSolution\firstmodule\src\FirstModule.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?) [D:\DemoSolution\firstmodule\src\FirstModule.HttpApi\FirstModule.HttpApi.csproj] D:\DemoSolution\firstmodule\src\FirstModule.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?) [D:\DemoSolution\firstmodule\src\FirstModule.HttpApi\FirstModule.HttpApi.csproj] D:\DemoSolution\firstmodule\src\FirstModule.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?) [D:\DemoSolution\firstmodule\src\FirstModule.HttpApi\FirstModule.HttpApi.csproj] D:\DemoSolution\firstmodule\src\FirstModule.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?) [D:\DemoSolution\firstmodule\src\FirstModule.HttpApi\FirstModule.HttpApi.csproj] D:\DemoSolution\firstmodule\src\FirstModule.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?) [D:\DemoSolution\firstmodule\src\FirstModule.HttpApi\FirstModule.HttpApi.csproj] D:\DemoSolution\firstmodule\src\FirstModule.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?) [D:\DemoSolution\firstmodule\src\FirstModule.HttpApi\FirstModule.HttpApi.csproj] D:\DemoSolution\firstmodule\src\FirstModule.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?) [D:\DemoSolution\firstmodule\src\FirstModule.HttpApi\FirstModule.HttpApi.csproj] Build FAILED. 0 Warning(s) 11 Error(s) Time Elapsed 00:00:01.60 Workload updates are available. Run `dotnet workload list` for more information." 09:19:31.503 Information Exception of type 'Volo.Abp.Studio.AbpStudioException' was thrown. 09:19:31.503 Information Code:AbpStudio:DotnetBuildFailed 09:19:31.503 Information Details: 09:19:31.504 Information ---------- Exception Data ---------- ProjectName = DemoSolution Details = D:\DemoSolution\firstmodule\src\FirstModule.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?) [D:\DemoSolution\firstmodule\src\FirstModule.HttpApi\FirstModule.HttpApi.csproj] D:\DemoSolution\firstmodule\src\FirstModule.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?) [D:\DemoSolution\firstmodule\src\FirstModule.HttpApi\FirstModule.HttpApi.csproj] D:\DemoSolution\firstmodule\src\FirstModule.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?) [D:\DemoSolution\firstmodule\src\FirstModule.HttpApi\FirstModule.HttpApi.csproj] D:\DemoSolution\firstmodule\src\FirstModule.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?) [D:\DemoSolution\firstmodule\src\FirstModule.HttpApi\FirstModule.HttpApi.csproj] D:\DemoSolution\firstmodule\src\FirstModule.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?) [D:\DemoSolution\firstmodule\src\FirstModule.HttpApi\FirstModule.HttpApi.csproj] D:\DemoSolution\firstmodule\src\FirstModule.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?) [D:\DemoSolution\firstmodule\src\FirstModule.HttpApi\FirstModule.HttpApi.csproj] D:\DemoSolution\firstmodule\src\FirstModule.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?) [D:\DemoSolution\firstmodule\src\FirstModule.HttpApi\FirstModule.HttpApi.csproj] D:\DemoSolution\firstmodule\src\FirstModule.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?) [D:\DemoSolution\firstmodule\src\FirstModule.HttpApi\FirstModule.HttpApi.csproj] D:\DemoSolution\firstmodule\src\FirstModule.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?) [D:\DemoSolution\firstmodule\src\FirstModule.HttpApi\FirstModule.HttpApi.csproj] D:\DemoSolution\firstmodule\src\FirstModule.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?) [D:\DemoSolution\firstmodule\src\FirstModule.HttpApi\FirstModule.HttpApi.csproj] D:\DemoSolution\firstmodule\src\FirstModule.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?) [D:\DemoSolution\firstmodule\src\FirstModule.HttpApi\FirstModule.HttpApi.csproj] Build FAILED. 0 Warning(s) 11 Error(s) Time Elapsed 00:00:01.60 Workload updates are available. Run `dotnet workload list` for more information.

Showing 1 to 10 of 45 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 25, 2025, 11:10