Skip to content

Enable migrations in ASP.NET Class library (package)  #2867

Closed

Description

@findulov

Hi,
I'm having DAL (Data Access Layer) class library package in ASP.NET MVC 6 where my entities and DbContext are located and I try to enable migrations using "dnx . ef migration add MigrationName".
The result it an InvalidOperationException saying:

System.InvalidOperationException: A type named 'StartupProduction' or 'Startup'
could not be found in assembly 'DAL'.

I wouldn't like to move my DAL structure to the Web application, so is there any workaround about it? Thanks!

Activity

  1. bricelam commented on Aug 18, 2015

    @bricelam
    Contributor

    Yeah, I'm not sure why Hosting started throwing in that case. It used to work. 😄

  2. bricelam commented on Aug 18, 2015

    @bricelam
    Contributor

    This is related to #2357

  3. added this to the 7.0.0 milestone on Aug 18, 2015
  4. modified the milestones: , 7.0.0 on Sep 17, 2015
  5. bricelam commented on Sep 23, 2015

    @bricelam
    Contributor

    Closing since this work is tracked by #2294

  6. removed this from the milestone on Sep 24, 2015
  7. removed their assignment
    on Sep 24, 2015
  8. bricelam commented on Sep 30, 2015

    @bricelam
    Contributor

    Re-opening. 😊 It's a distinct enough issue to track on its own.

  9. added this to the milestone on Sep 30, 2015
  10. self-assigned this
    on Sep 30, 2015
  11. modified the milestones: , 1.0.0 on Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions