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

  • Met “/bin/bash: no such file” when building docker image from scratch
  • Docker compose file memory, cpu limits
  • How do I expose port from Container to host?
  • grunt serve in docker container max call stack error
  • docker compose won't mount the external volume
  • Can I mount same volume to multiple docker containers
  • PS : This command works without docker support, but return this error when I add docker support

  • not able to deploy k8s pod when tried through jenkins job on GCE
  • Execute chmod in Dockerfile on Raspberry pi /dev/spi*
  • Docker create images “Ubuntu 14.04” with Docker file
  • Docker RUN fails with “returned a non-zero code: 6”
  • Best practices for Publishing an ASP.NET 5 app to Docker on Linux with Visual Studio
  • Docker API - Exec start returns “Page not found”
  • 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.