No executable found a matching "dotnet-add" command

I just installed a new version of Fedora 25 (and then installed dotnet core 1.1) to explore the possibilities of doing any dotnet core development on linux. When trying to add my first package, I got the following error:

Could not find executable command "dotnet-add"

I've seen some similar errors in other SO posts, but nothing seems to help with this issue. I have attached a few images below for errors, dotnet version information, system path and dotnet location.

enter image description here

enter image description here

enter image description here

Thanks for the tips!

+3


source to share


2 answers


You have installed the dotnet-dev

preview time version of the dotnet SDK ("CLI" / ), which is still based on project.json. This version of the CLI does not contain a set of verbs dotnet add

. They were publicly released with a version 1.0.0

. (at the time of writing, the current version of the SDK / CLI is 1.0.4

).

Depending on what instructions you followed to install the components, be sure to update to newer SDK / CLI versions (e.g. microsoft install instructions for Fedora ).



Please note that the SDK / CLI version is different from the runtime version on the machine.

+3


source


Had the same issue while running VS 2017 Version 15.3.5 found very helpful article http://thedatafarm.com/data-access/no-executable-found-matching-command-dotnet-ef/

My main problem is that the tool is split in two:



One for CLI: Microsoft.EntityFrameworkCore.Tools.DotNet

One for Powershell: Microsoft.EntityFrameworkCore.Tools

0


source







All Articles