Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

EF Migration Command #4878


User avatar
0
paulg created

I am getting this error when following the getting started guide. I did set **.**EntityFrameworkCore as the Startup Project:

PM> Update-Database Could not load assembly '..Web.Host'. Ensure it is referenced by the startup project '..EntityFrameworkCore'.

Any ideas?


2 Answer(s)
  • User Avatar
    0
    rodrigosturm created

    You need to alter your startup project to mvc and standard project as entityframework like the attachment img

  • User Avatar
    0
    yekalkan created

    Hi @paulg

    " .Web.Host" should be set as startup project.

    ".EntityFrameworkCore" is set like below

    see <a class="postlink" href="https://aspnetzero.com/Documents/Getting-Started-Angular#database-migrations">https://aspnetzero.com/Documents/Gettin ... migrations</a>