I'm new to ASP.NET and am trying to set up a webAPI c# application with entity framework. But when I try to run the Enable-Migrations command on nuget-package-manager console, I'm getting the following error:
"Cannot bind argument to parameter 'Path' because it is null"
enable-migrations : Cannot bind argument to parameter 'Path' because it is
null.
At line:1 char:1
+ enable-migrations -ContextTypeName SchoolDBContext
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Enable-Migrations],
ParameterBindingValidationException
+ FullyQualifiedErrorId :
ParameterArgumentValidationErrorNullNotAllowed,Enable-Migrations
I've tried uninstalling and re-installing entity framework but it still gives the same error.
How can I fix this?