Starts in:
2 DAYS
1 HR
56 MIN
49 SEC
Starts in:
2 D
1 H
56 M
49 S
Open Closed

ABP Suite error during DB Migration step #3865


User avatar
0
epieters created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v6.0
  • UI type: MVC
  • DB provider: EF Core
  • Template: no-layer

I upgraded to ABP 6.0 Now I'm getting the following error when I update an entity with ABP Suite and run "Save & Generate"


5 Answer(s)
  • User Avatar
    0
    epieters created

    Hello, anybody around that can help? This is blocking me from making progress on the application that I need to demo tomorrow. So I would appreciate some hints (even if its just the commands I need to run manually in the VS PM console)

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Hi @epieters,

    When you run the *.DbMigrator project with dotnet run command, what is the output?

  • User Avatar
    0
    epieters created

    Hi @yekalkan

    I'm using the no-layers template, so I just ran >dotnet run in the project directory. It looks like the enums are not getting referenced in the generated code and some of the files are getting created from scratch, resulting in duplicates.

    C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\IPackagingMachinesAppService.cs(8,22): error CS0101: The namespace 'Pentapack.MRS.PackagingMac hines' already contains a definition for 'IPackagingMachinesAppService' [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\PackagingMachinesAppService.cs(19,18): error CS0101: The namespace 'Pentapack.MRS.PackagingMac hines' already contains a definition for 'PackagingMachinesAppService' [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\GetPackagingMachinesInput.cs(13,16): error CS0246: The type or namespace name 'MachineType' co uld not be found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\GetPackagingMachinesInput.cs(14,16): error CS0246: The type or namespace name 'PrinterType' co uld not be found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\EfCorePackagingMachineRepository.cs(27,13): error CS0246: The type or namespace name 'MachineT ype' could not be found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\EfCorePackagingMachineRepository.cs(28,13): error CS0246: The type or namespace name 'PrinterT ype' could not be found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\EfCorePackagingMachineRepository.cs(46,13): error CS0246: The type or namespace name 'MachineT ype' could not be found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\EfCorePackagingMachineRepository.cs(47,13): error CS0246: The type or namespace name 'PrinterT ype' could not be found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\EfCorePackagingMachineRepository.cs(62,13): error CS0246: The type or namespace name 'MachineT ype' could not be found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\EfCorePackagingMachineRepository.cs(63,13): error CS0246: The type or namespace name 'PrinterT ype' could not be found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\IPackagingMachineRepository.cs(16,13): error CS0246: The type or namespace name 'MachineType' could not be found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\IPackagingMachineRepository.cs(17,13): error CS0246: The type or namespace name 'PrinterType' could not be found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\IPackagingMachineRepository.cs(31,13): error CS0246: The type or namespace name 'MachineType' could not be found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\IPackagingMachineRepository.cs(32,13): error CS0246: The type or namespace name 'PrinterType' could not be found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\IPackagingMachinesAppService.cs(10,51): error CS0111: Type 'IPackagingMachinesAppService' alre ady defines a member called 'GetListAsync' with the same parameter types [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\IPackagingMachinesAppService.cs(12,35): error CS0111: Type 'IPackagingMachinesAppService' alre ady defines a member called 'GetAsync' with the same parameter types [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\IPackagingMachinesAppService.cs(14,14): error CS0111: Type 'IPackagingMachinesAppService' alre ady defines a member called 'DeleteAsync' with the same parameter types [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\IPackagingMachinesAppService.cs(16,35): error CS0111: Type 'IPackagingMachinesAppService' alre ady defines a member called 'CreateAsync' with the same parameter types [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\IPackagingMachinesAppService.cs(18,35): error CS0111: Type 'IPackagingMachinesAppService' alre ady defines a member called 'UpdateAsync' with the same parameter types [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\PackagingMachine.cs(23,24): error CS0246: The type or namespace name 'MachineType' could not b e found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\PackagingMachine.cs(25,24): error CS0246: The type or namespace name 'PrinterType' could not b e found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\PackagingMachinesAppService.cs(25,16): error CS0111: Type 'PackagingMachinesAppService' alread y defines a member called 'PackagingMachinesAppService' with the same parameter types [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\PackagingMachinesAppService.cs(32,72): error CS0111: Type 'PackagingMachinesAppService' alread y defines a member called 'GetListAsync' with the same parameter types [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\PackagingMachinesAppService.cs(44,56): error CS0111: Type 'PackagingMachinesAppService' alread y defines a member called 'GetAsync' with the same parameter types [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\PackagingMachinesAppService.cs(50,35): error CS0111: Type 'PackagingMachinesAppService' alread y defines a member called 'DeleteAsync' with the same parameter types [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\PackagingMachinesAppService.cs(56,56): error CS0111: Type 'PackagingMachinesAppService' alread y defines a member called 'CreateAsync' with the same parameter types [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\PackagingMachinesAppService.cs(67,56): error CS0111: Type 'PackagingMachinesAppService' alread y defines a member called 'UpdateAsync' with the same parameter types [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\PackagingMachineCreateDto.cs(15,16): error CS0246: The type or namespace name 'MachineType' co uld not be found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\PackagingMachine.cs(40,77): error CS0246: The type or namespace name 'MachineType' could not b e found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\PackagingMachine.cs(40,102): error CS0246: The type or namespace name 'PrinterType' could not be found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\PackagingMachineCreateDto.cs(17,16): error CS0246: The type or namespace name 'PrinterType' co uld not be found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\PackagingMachineDto.cs(13,16): error CS0246: The type or namespace name 'MachineType' could no t be found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\PackagingMachineDto.cs(15,16): error CS0246: The type or namespace name 'PrinterType' could no t be found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\PackagingMachineManager.cs(23,44): error CS0246: The type or namespace name 'MachineType' coul d not be found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\PackagingMachineManager.cs(23,69): error CS0246: The type or namespace name 'PrinterType' coul d not be found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\PackagingMachineUpdateDto.cs(16,16): error CS0246: The type or namespace name 'MachineType' co uld not be found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\PackagingMachineUpdateDto.cs(18,16): error CS0246: The type or namespace name 'PrinterType' co uld not be found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pages\PackagingMachines\Index.cshtml.cs(20,16): error CS0246: The type or namespace name 'MachineType' could not be found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\PackagingMachineManager.cs(35,48): error CS0246: The type or namespace name 'MachineType' coul d not be found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Entities\PackagingMachines\PackagingMachineManager.cs(35,73): error CS0246: The type or namespace name 'PrinterType' coul d not be found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj] C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pages\PackagingMachines\Index.cshtml.cs(21,16): error CS0246: The type or namespace name 'PrinterType' could not be found (are you missing a using directive or an assembly reference?) [C:\Repos\in2facts\Pentapack.MRS\Pentapack.MRS\Pentapack.MRS.csproj]

  • User Avatar
    0
    epieters created

    Yep, pretty sure that "Save & Generate" is not adding the using statements for the enums.

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Hi again @epieters,

    I've done the followings:

    • Create a no-layer project with MVC ui.
    • Create an enum in the project.
    • Generate a CRUD page that has a property type of that enum (via ABP Suite)

    I got no error, project is built successfuly.


    Can you provide any extra steps to reproduce the problem?

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06