add-migration : Cannot bind argument to parameter 'Path' because it is an empty string add-migration : Cannot bind argument to parameter 'Path' because it is an empty string docker docker

add-migration : Cannot bind argument to parameter 'Path' because it is an empty string


It looks like you're hitting issue #7540. For now, put your project on a "physical" drive instead of a network file share. (Scratch that. You're using the PMC commands.)

You're probably hitting issue #7439. Make sure your app is selected as the startup project (or use the -StartupProject parameter) when running the commands.


It would be interesting to know with which version of Entity Framework this error occurred.I had the same error with EF 6.3.0 and I am not using docker at all.

The solution for me was to go back to version 6.2.0 and create the migration with it.