Skip to content

Title: ABP CLI 10.5.0-rc.4 generates project with wrong EF Core Design dependency Environment: #25739

Description

@ahmRamadan-Coder

Is there an existing issue for this?

  • I have searched the existing issues

Description

Title: ABP CLI 10.5.0-rc.4 generates project with wrong EF Core Design dependency

Environment:

  • ABP CLI: 10.5.0-rc.4
  • .NET SDK: 10.0.301
  • dotnet-ef: 10.0.9
  • OS: Windows 11
  • Database: SQL Server

Steps to reproduce:

  1. Install ABP CLI 10.5.0-rc.4.

  2. Create a new project using abp new.

  3. Run:

    dotnet list package --include-transitive
  4. Observe that:

    Microsoft.EntityFrameworkCore.Design 8.0.0
    

    is resolved transitively even though the project targets .NET 10 and uses EF Core 10 packages.

Symptoms:

  • dotnet ef migrations list throws:

    System.TypeLoadException:
    Method 'Identifier' in type
    'Microsoft.EntityFrameworkCore.Design.Internal.CSharpHelper'
    from assembly 'Microsoft.EntityFrameworkCore.Design, Version=8.0.0.0'
    does not have an implementation.
    
  • DbMigrator fails during seeding with:

    Invalid object name 'AbpSettings'
    

Workaround:
Adding the package explicitly fixes the issue:

dotnet add package Microsoft.EntityFrameworkCore.Design --version 10.0.7
dotnet restore

After adding the explicit reference:

  • dotnet ef migrations list works correctly.
  • DbMigrator completes successfully.

Reproduction Steps

No response

Expected behavior

No response

Actual behavior

No response

Regression?

No response

Known Workarounds

No response

Version

10.5.0-rc.4

User Interface

MVC

Database Provider

EF Core (Default)

Tiered or separate authentication server

None (Default)

Operation System

Windows (Default)

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions