Base solution for your next web application
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?

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

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

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • 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>

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)