You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enable migrations in ASP.NET Class library (package) #2867
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
bricelam commentedon Aug 18, 2015
Yeah, I'm not sure why Hosting started throwing in that case. It used to work. 😄
bricelam commentedon Aug 18, 2015
This is related to #2357
natemcmaster commentedon Aug 18, 2015
@ge6a93 Workaround: http://ef.readthedocs.org/en/latest/getting-started/osx.html#add-a-startup-class-to-your-project
bricelam commentedon Sep 23, 2015
Closing since this work is tracked by #2294
bricelam commentedon Sep 30, 2015
Re-opening. 😊 It's a distinct enough issue to track on its own.