-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
When I run “Add-Migration” from the package manager console, I get:
PM> Add-Migration test
Join-Path : Cannot bind argument to parameter 'Path' because it is an empty string.
At D:\Projekte\Azure\CMT\Source\Packages\z.entityframework.classic\7.1.25\tools\EntityFramework.psm1:715 char:28
+ $toolsPath = Join-Path $installPath tools
+ ~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Join-Path], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.JoinPathCommand
Join-Path : Cannot bind argument to parameter 'Path' because it is null.
At D:\Projekte\Azure\CMT\Source\Packages\z.entityframework.classic\7.1.25\tools\EntityFramework.psm1:782 char:74
+ ... [System.Reflection.Assembly]::LoadFrom((Join-Path $ToolsPath EntityF ...
+ ~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Join-Path], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCommand
You cannot call a method on a null-valued expression.
At D:\Projekte\Azure\CMT\Source\Packages\z.entityframework.classic\7.1.25\tools\EntityFramework.psm1:783 char:5
+ $dispatcher = $utilityAssembly.CreateInstance(
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
Join-Path : Cannot bind argument to parameter 'Path' because it is null.
At D:\Projekte\Azure\CMT\Source\Packages\z.entityframework.classic\7.1.25\tools\EntityFramework.psm1:812 char:20
+ (Join-Path $runner.ToolsPath EntityFramework.PowerShell.dll),
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Join-Path], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCommand
PM>
Please note that in my project, I have moved the DbContext and the Migrations into a separate assembly “CMT.DataAccess” and the Model into an assembly “CMT.DataAccess.Model”. This worked fine for EF6. To migrate from EF6 to EFClassic, I removed all EntityFramework packages and installed the EFClassic packages as described in the documentation.
Metadata
Metadata
Assignees
Labels
No labels