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

Installing XamlStyler.Console as Local Tool doesn't work #376

Open
michael-hawker opened this issue Mar 30, 2022 · 2 comments
Open

Installing XamlStyler.Console as Local Tool doesn't work #376

michael-hawker opened this issue Mar 30, 2022 · 2 comments

Comments

@michael-hawker
Copy link
Contributor

Describe the bug
Wanted to use dotnet tool restore to easily install all tools required by our CI and manage them all via a manifest vs. specific install commands everywhere (as we also wanted to use in git hooks as well).

Trying to run XamlStyler.Console as a dotnet local tool is failing to run properly (tried in PowerShell and in commandline). Validated that using a global install works, so problem seems to be specific to trying to run as a local tool.

To Reproduce
Steps to reproduce the behavior:

  1. Install XamlStyler.Console as a local tool: https://github.com/Xavalon/XamlStyler/wiki/Script-Integration#install-as-a-local-tool
    dotnet tool install XamlStyler.Console
  2. Try running tool as a local tool:
    dotnet tool run xstyler -r -d . -p -c .\settings.xamlstyler -l Debug
  3. See error: Error: Must specify file(s) or directory

Note: if you install the global tool and just run xstyler -r -d . -p -c .\settings.xamlstyler -l Debug with the same line, it works fine.

Expected behavior
Xstyler still able to run as a dotnet local tool.

Screenshots
If applicable, add screenshots to help explain your problem.

Global tool installed and runs:
image

Local tool installed and doesn't run:
image

External Configuration
If you are using an external configuration, please attach to help reproduce the issue.

Version Info (please complete the following information):

  • OS: Win 10 21H2 19044.1586
  • Visual Studio: VS 2022
  • XAML Styler: Console 3.2008.4
michael-hawker added a commit to michael-hawker/XamlStyler that referenced this issue Apr 1, 2022
@skaman
Copy link

skaman commented Mar 12, 2023

any news on this? Problem is still here with 3.2206.4

@skaman
Copy link

skaman commented Mar 12, 2023

After some test, i ended up that using --directory instead of -d it work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants