Skip to content

[Bug]: Csharpier not installing correctly #1883

Description

@arieroos

Description

I have installed csharpier as per the docs, but I cannot run it.

PS D:\Arie\file-sync-client-windows> dotnet chsarpier --version
Could not execute because the specified command or file was not found.
Possible reasons for this include:
  * You misspelled a built-in dotnet command.
  * You intended to execute a .NET program, but dotnet-chsarpier does not exist.
  * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.

I did check that the dotnet tools path is in my PATH environment variable.
Checking the dotnet tools directory gives the reason why I can't run the extension:

PS D:\Arie\file-sync-client-windows> dir C:\Users\danie\.dotnet\tools

    Directory: C:\Users\danie\.dotnet\tools

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          2026/07/09    11:19                .store
-a---          2026/07/09    11:19         162304 csharpier.exe
-a---          2024/01/04    21:44         141312 dotnet-signtool.exe
-a---          2026/06/02    16:43            179 roslyn-language-server.cmd

According to the error message, that executable should be named dotnet-csharpier.exe.

Just running csharpier instead of dotnet csharpier works, but that is not how it is documented. This also breaks the conform.nvim plugin.

Steps to Reproduce

Run these commands in powershell:

dotnet tool install -g csharpier
dotnet csharpier --version

Expected Behavior

The tool to run as documented.
I was running dotnet csharpier --version instaed of dotnet format ., but the same error message applies.

Eg:

PS D:\Arie\file-sync-client-windows> dotnet csharpier --version
1.3.0

Actual Behavior

I get this error message:

PS D:\Arie\file-sync-client-windows> dotnet chsarpier --version
Could not execute because the specified command or file was not found.
Possible reasons for this include:
  * You misspelled a built-in dotnet command.
  * You intended to execute a .NET program, but dotnet-chsarpier does not exist.
  * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions