efcore: Tools: "Your startup project doesn't reference Design" in VS 15.7
The implementation of NuGet/Home#4125 broke our Microsoft.EntityFrameworkCore.Tools package. Since it uses ExcludeAssets="Runtime", .NET Core can’t find Microsoft.EntityFrameworkCore.Design.dll at design time.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 21 (12 by maintainers)
It’s nice that users can’t compile against Microsoft.EntityFrameworkCore.Design.dll, but we still need
Assembly.Load("Microsoft.EntityFrameworkCore.Design")to work…Hi @bricelam , I have gone through all of your examples and solutions pertaining to above issue being discussed and they are really helpful since I am also trying to execute migrations against a dll, or a class library compiled to a dll, but unfortunately I have still not been able to implement or adapt your solution here: https://blog.bennymichielsen.be/2017/08/01/migrating-databases-with-ef-core-during-a-vsts-release/ . I would really appreciate if you can please go into more details and explain your approach. Following were the issues I encountered :
thanks in advance
I realized it was a stupid question shortly after asking it. 😄 lol, please ignore.
Just wanted to check if the error I’m seeing is related to this issue. Running ef migrations with
dotnet execand it’s complaining about the same thing:Haven’t had any issues with this setup before testing the 2.1 preview, and adding the reference does not help.