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

  • Why can't the Docker (“master”) container see workers?
  • Unable to communicate between docker containers
  • Configuring MongoDB replica set from docker-compose
  • Docker: rails executable file not found in $PATH
  • Connecting zeppelin docker with hive
  • Docker dotnet core nginx proxy 502
  • PS : This command works without docker support, but return this error when I add docker support

  • Namenode runs on InternalIP:8020 in cloudera docker and causes applications to fail
  • In Docker, how can I share files between containers and then save them to an image?
  • Moving docker root folder to a new drive / partition
  • How to enable MongoDB access control using a Docker container?
  • Docker how to inject host ENV into Dockerfile ENV during build?
  • Use public container images on IBM Bluemix
  • One Solution collect form web for “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 starup project (or use the -StartupProject parameter) when running the commands.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.