Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm running default api core project on Visual studio 2017 with docker support and I got this error everytime I run the command add-migration -name name

add-migration : Cannot bind argument to parameter 'Path' because it is an empty string. At line:1 char:1 + add-migration + ~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (:) [Add-Migration], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Add-Migration

PS : This command works without docker support, but return this error when I add docker support

like image 657
Hayha Avatar asked Mar 08 '17 10:03

Hayha


1 Answers

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.

like image 75
bricelam Avatar answered Nov 04 '22 01:11

bricelam