You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Right now when a user installs a tool into a new project, they immediately get an error instead of a successful tool installation
➜ dotnet tool install fantomas --prerelease
Cannot find a manifest file.
For a list of locations searched, specify the "-d" option before the tool name.
If you intended to install a global tool, add `--global` to the command.
If you would like to create a manifest, use `dotnet new tool-manifest`, usually in the repo root directory.
Describe the solution you'd like
When installing a local tool, if no manifest exists in the heirarchy one should be created inside a .config directory at the current working directory. There's no need for a user to execute an entirely different command (template creation of a tool manifest) to get unblocked here. We should log that this action was done on the user's behalf. If the user doesn't want this behavior, they can remove + recreate the file at the desired level of the heirarchy.
The text was updated successfully, but these errors were encountered:
There is some more discussion about this here: #15254
It'd be great to have though! Having to litter dotnet new tool-manifest all over my CI/CD just to run post-processing tools like test results converters is a pain. And global tools don't work for shared runners.
.NET tools is lacking the ability to have a simple command that does exactly what it's being asked: Ensure that a .NET tool is installed and exit gracefully.
You should be able to copy/paste the instructions on how to install a .NET tool, and it should work on any machine regardless if the tool is installed or not, manifest or not... But that's not where we are today.
Is your feature request related to a problem? Please describe.
Right now when a user installs a tool into a new project, they immediately get an error instead of a successful tool installation
Describe the solution you'd like
When installing a local tool, if no manifest exists in the heirarchy one should be created inside a .config directory at the current working directory. There's no need for a user to execute an entirely different command (template creation of a tool manifest) to get unblocked here. We should log that this action was done on the user's behalf. If the user doesn't want this behavior, they can remove + recreate the file at the desired level of the heirarchy.
The text was updated successfully, but these errors were encountered: