Skip to content

Commit

Permalink
Fix #5327 - use backward-compatible powershell API in EF commands
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Nate McMaster committed May 13, 2016
1 parent 23d36af commit 31abba7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,11 @@ function ShowConsole {
}

function InvokeDotNetEf($project, [switch] $json, [switch] $skipBuild) {
$dotnet = (Get-Command dotnet).Source
try {
$dotnet = (Get-Command dotnet).Path
} catch {
throw "Could not find .NET Core CLI (dotnet.exe). .NET Core CLI is required to execute EF commands on this project type."
}
Write-Debug "Found $dotnet"
$fullPath = GetProperty $project.Properties FullPath
$projectJson = Join-Path $fullPath project.json
Expand Down

0 comments on commit 31abba7

Please sign in to comment.