Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSharpier command doesn't seem to work with local tool. #1450

Closed
belav opened this issue Jan 20, 2025 · 2 comments · Fixed by #1461
Closed

CSharpier command doesn't seem to work with local tool. #1450

belav opened this issue Jan 20, 2025 · 2 comments · Fixed by #1461
Milestone

Comments

@belav
Copy link
Owner

belav commented Jan 20, 2025

When I install alpha10 as a local tool, I can't use csharpier as a command. I need to use dotnet csharpier.

When I install it globally, I can use csharpier.

Is this some limitation of dotnet tools?

@belav belav added this to the 1.0.0 milestone Jan 20, 2025
@belav
Copy link
Owner Author

belav commented Jan 21, 2025

See this for all the details - https://learn.microsoft.com/en-us/dotnet/core/tools/global-tools#invoke-a-global-tool

I may just go back to how it used to work.

belav added a commit that referenced this issue Jan 26, 2025
If a tool has a command of `csharpier` then to invoke it as a local tool
you need to use `dotnet csharpier`. Only a globally installed tool works
with `csharpier`. It doesn't seem worth the trouble to change the
command because of that.

If dotnet/sdk#14626 is done, this can be
revisited.

closes #1450
@belav
Copy link
Owner Author

belav commented Jan 26, 2025

Had a bit of a misunderstanding of how tools worked. Leaving it with the new command.

@belav belav closed this as completed Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant