admin管理员组文章数量:1654036
最近在学习 core,用vs2019 将数据库模型更新到代码中的时候需要执行
Scaffold-DbContext "Server=.;Database=数据库名称;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models
出现了
PowerShell version 2.0 is not supported. Please upgrade PowerShell to 3.0 or greater and restart Visual Studio.
的错误
解决方法是需要安装微软的 Management Framework 3.0
下载地址:https://www.microsoft/en-us/download/details.aspx?id=34595
不过在安装的时候还会报:0x80070422 的错误
需要我们在 服务 中启动 ASP.NET 状态服务、Windows Update
然后重新安装 Management Framework 3.0 即可
重启电脑,在所有程序中找到 Windows PowerShell 打开后输入 $PSVersionTable.PSVersion,版本变为 3
本文标签: 升级到报错解决方法powershellFramework
版权声明:本文标题:Win7PowerShell 2.0升级到3.0安装Management Framework 3.0 报错解决方法 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dongtai/1725829676a1044501.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论