"dotnet cake" or "dotnet dotnet-cake"? #4463
Unanswered
RichardR-cg
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been using Cake for years. I install Cake.Tool as a local tool in my repo. I have always run it using "dotnet cake". I've just upgraded from Cake 4 to 5 (in case that's relevant) and when I tried to run it, it said I needed to do a "dotnet tool restore", even though "dotnet tool list --local" was showing it (v5) as being there (and it isn't installed as a global tool). I noticed that
.config\dotnet-tools.json
(anddotnet tool list --local
) indicate that the tool name isdotnet-cake
, so I trieddotnet dotnet-cake
and that worked. And the bizarre thing is that if I now trydotnet cake
(which wasn't working), that is working again.So I was just wondering what is the correct way to run cake when it is a locally installed dotnet tool?
Beta Was this translation helpful? Give feedback.
All reactions