Вводимая мной команда: dotnettool install --global dotnet-ef
Выдает следующую ошибку:
Код: Выделить всё
C:\Users\%USERNAME%\AppData\Local\Temp\147383a8-b714-4336-bb96-30c0670ea37d\restore.csproj : error NU1211: Project res
tore must have a single package reference(s).
C:\Users\abby.rahimi\AppData\Local\Temp\147383a8-b714-4336-bb96-30c0670ea37d\restore.csproj : error NU1212: Invalid pro
ject-package combination for Microsoft.DotNet.Analyzers.Compatibility 0.2.12-alpha. DotnetToolReference project style c
an only contain references of the DotnetTool type
The tool package could not be restored.
Tool 'dotnet-ef' failed to install. This failure may have been caused by:
* You are attempting to install a preview release and did not use the --version option to specify the version.
* A package by this name was found, but it was not a .NET tool.
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
* You mistyped the name of the tool.
Я пытался указать версию, все равно не работает
Я попробовал куча вещей:
- dotnet Tool install -g dotnet-ef --ignore-failed-sources
- переустановка dotnet SDKS (3.1 и 6.0.305)
- удаление инструмента dotnet --global dotnet-ef и повторная попытка установки
- удаление исполняемого файла dotnet-ef.exe из C :\Users%USERNAME%.dotnet\tools
- запустите команду как в Power Shell, так и в Win Cli
Подробнее здесь: https://stackoverflow.com/questions/741 ... ll-command
Мобильная версия