How to fix Add-Migration: Exception calling "Start" with "1" argument(s):

Sonya 10 Reputation points

Hello everyone. I am trying to create a migration, but when I call "Add-Migration" I get an error:

Add-Migration: Exception calling "Start" with "1" argument(s): "An error occurred trying to start process '/usr/local/bin/dotnet' with working directory '/Users/../server/Optimum.Api/'. No such file or directory"

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
710 questions
{count} vote

1 answer

Sort by: Most helpful
  1. AgaveJoe 26,671 Reputation points

    Migrations require a name which is missing from the command and the reason for the error message. Please see the official documentation. Entity Framework Core tools reference - Package Manager Console in Visual Studio

    add-migration NameOfTheMigration
    0 comments No comments