Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net dotnet工具安装--全局dotnet ef_.net_Visual Studio Code - Fatal编程技术网

.net dotnet工具安装--全局dotnet ef

.net dotnet工具安装--全局dotnet ef,.net,visual-studio-code,.net,Visual Studio Code,错误NU1100:无法解析“net5.0”的“dotnet ef(>=0.0.0)”。 错误NU1100:无法解析“net5.0/any”的“dotnet ef(>=0.0.0)”。 无法还原该工具包。 工具“dotnet ef”安装失败。该故障可能由以下原因引起: 您正在尝试安装预览版本,但未使用--version选项指定版本 找到了一个同名的包,但它不是.NET工具 无法访问所需的NuGet提要,可能是因为Internet连接问题 您输入了错误的工具名称 有关更多原因(包括包命名强制),

错误NU1100:无法解析“net5.0”的“dotnet ef(>=0.0.0)”。 错误NU1100:无法解析“net5.0/any”的“dotnet ef(>=0.0.0)”。 无法还原该工具包。 工具“dotnet ef”安装失败。该故障可能由以下原因引起:

  • 您正在尝试安装预览版本,但未使用--version选项指定版本
  • 找到了一个同名的包,但它不是.NET工具
  • 无法访问所需的NuGet提要,可能是因为Internet连接问题
  • 您输入了错误的工具名称
有关更多原因(包括包命名强制),请访问 错误NU1100:无法解析“net5.0”的“dotnet aspnet codegenerator(>=0.0.0)”。 错误NU1100:无法为“net5.0/any”解析“dotnet aspnet codegenerator(>=0.0.0)”。 无法还原该工具包。 工具“dotnet aspnet codegenerator”安装失败。该故障可能由以下原因引起:

  • 您正在尝试安装预览版本,但未使用--version选项指定版本
  • 找到了一个同名的包,但它不是.NET工具
  • 无法访问所需的NuGet提要,可能是因为Internet连接问题
  • 您输入了错误的工具名称

将其安装在本地项目中,而不是在全球范围内,它将对我有效。逐个执行以下命令:

  • dotnet新工具清单(这将在项目中显示dotnet-tools.json文件)
  • dotnet工具安装--本地dotnet ef--版本5.0.5
  • dotnetef