question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make 'dotnet tool restore' Automatic

See original GitHub issue

Before I run a tool (e.g. dotnet cake) from my dotnet tool manifest file (shown below), I have to remember to run dotnet tool restore first.

{
  "version": 1,
  "isRoot": true,
  "tools": {
    "cake.tool": {
      "version": "0.36.0",
      "commands": [
        "dotnet-cake"
      ]
    }
  }
}

Similar to how dotnet build now automatically runs dotnet restore for you, can running dotnet cake also run dotnet tool restore for me?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:56
  • Comments:5

github_iconTop GitHub Comments

2reactions
theprashcommented, Mar 13, 2020

This feels like a simple but effective usability improvement since dotnet already knows that a restore is needed: Run "dotnet tool restore" to make the "fake" command available.

It would allow us to remove what feels like an unnecessary extra instruction for users of the SAFE Template.

0reactions
wooferclawcommented, May 19, 2022

please add support for this feature

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet tool restore command - .NET CLI
The dotnet tool restore command installs on your machine the .NET local tools that are in scope for the current directory.
Read more >
Run "dotnet tool restore" to make the "dotnet-ef" command ...
Run "dotnet tool restore" to make the "dotnet-ef" command available ; Step 1: Go to the folder where your .sln file is. ;...
Read more >
.NET Core 3 Local Tools
NET Core Local Tools introduced in 3.0, contrasting the new way ... Run "dotnet tool restore" to make the "dotnet-cake" command available.
Read more >
Dotnet restore vs nuget restore. Share. In my code repo, there
Dotnet restore vs nuget restore. Share. In my code repo, there is nuget. config and PackageReference. The solution we found includes two parts:...
Read more >
Install as .NET tool - Introduction to SpecSync for Azure DevOps
This can be performed using the dotnet tool restore command, that restores all .NET local tools of the project. See more information about...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found