Skip to content

RevEng: Improve error message when not supported #14629

Description

@bricelam

Similar to #1652, but for reverse engineering.

Today with the Cosmos provider, you get this:

System.InvalidOperationException: Unable to find expected assembly attribute named DesignTimeProviderServicesAttribute in provider assembly Microsoft.EntityFrameworkCore.Cosmos. This attribute is required to identify the class which acts as the design-time service provider factory.
   at Microsoft.EntityFrameworkCore.Design.Internal.DesignTimeServicesBuilder.ConfigureProviderServices(String provider, IServiceCollection services, Boolean throwOnError)
   at Microsoft.EntityFrameworkCore.Design.Internal.DesignTimeServicesBuilder.Build(String provider)
   at Microsoft.EntityFrameworkCore.Design.Internal.DatabaseOperations.ScaffoldContext(String provider, String connectionString, String outputDir, String outputContextDir, String dbContextClassName, IEnumerable`1 schemas, IEnumerable`1 tables, Boolean useDataAnnotations, Boolean overwriteFiles, Boolean useDatabaseNames)
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.ScaffoldContextImpl(String provider, String connectionString, String outputDir, String outputDbContextDir, String dbContextClassName, IEnumerable`1 schemaFilters, IEnumerable`1 tableFilters, Boolean useDataAnnotations, Boolean overwriteFiles, Boolean useDatabaseNames)
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.ScaffoldContext.<>c__DisplayClass0_1.<.ctor>b__0()
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.<>c__DisplayClass3_0`1.<Execute>b__0()
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)

Activity

  1. added this to the 3.0.0 milestone on Feb 8, 2019
  2. modified the milestones: 3.0.0, Backlog on Jun 21, 2019
  3. changed the title [-]RevEng: Error better when not supported[/-] [+]RevEng: Improve error message when not supported[/+] on Aug 21, 2019
  4. 27 remaining items

  5. modified the milestones: 7.0.0, MQ on Oct 22, 2021
  6. removed their assignment
    on Jul 8, 2023
  7. removed
    good first issueThis issue should be relatively straightforward to fix.
    on May 14, 2024
  8. added theissue type on Jun 15, 2025
  9. added a commit that references this issue on Oct 15, 2026
    f6d957e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions