【发布时间】:2020-06-18 21:14:04
【问题描述】:
我试图在 Visual Studio for Mac 版本 8.4.8 (VS Mac) 的包管理控制台中使用 add-migration 命令。但是,包管理(PM)控制台不随 VS Mac 一起提供。 Cant find package manager console in visual studio for mac 我按照上面的链接,安装了 Powershell 和 NuGet 包管理扩展版本 0.21 。 PM 控制台出现在我的 VS Mac 中。但是当我打开它时,它开始给我错误,我粘贴在下面。
我可以在 mac 终端中运行 PowerShell。但它在 VS Mac 中不起作用
Disconnected from remote PowerShell host. Reason: Disposed: Reached end of stream.
Disconnected from remote PowerShell host. Reason: Disposed: Reached end of stream.
Unable to restart PowerShell host
Unable to restart PowerShell host
A task was canceled.
NuGet 5.3.0.3
Type 'get-help NuGet' for more information.
Unable to restart PowerShell host
PM>
Unable to restart PowerShell host
PM>
Unable to restart PowerShell host
PM>
Unable to restart PowerShell host
'/Users/myname/.nuget/packages/microsoft.entityframeworkcore.tools/3.1.2/tools/init.ps1'
Executing script file '/Users/myname/.nuget/packages/microsoft.entityframeworkcore.tools/3.1.2/tools/init.ps1'...
Write fault on path /[Unknown]
Disconnected from remote PowerShell host. Reason: Disposed: Reached end of stream.
【问题讨论】:
-
您能在 IDE 日志中找到任何错误吗(帮助 - 打开日志目录)?您列出的错误输出只是表明 PowerShell 主机控制台应用程序无法运行。
标签: macos powershell visual-studio-mac nuget-package-manager-console