csharpier icon indicating copy to clipboard operation
csharpier copied to clipboard

Stop checking inside bin/obj folder for formatting

Open Hona opened this issue 7 months ago • 1 comments

We have xml documentation files being generated on build

<GenerateDocumentationFile>true</GenerateDocumentationFile>

This causes the following build errors when using the MSBuild integration

    C:\Repos\x\src\WebUI\xx\bin\Debug\net9.0\[csproj].xml : error : Was not formatted.
    C:\Repos\x\src\WebUI\xx\bin\Debug\net9.0\[csproj].xml : error : Was not formatted.
    C:\Repos\x\src\WebUI\xx\bin\Release\net9.0\[csproj].xml : error : Was not formatted.

Hona avatar Jun 10 '25 23:06 Hona

All of my testing indicates that CSharpier already works this way, bin and obj are part of the always ignore list in https://github.com/belav/csharpier/blob/main/Src/CSharpier.Cli/IgnoreFile.cs

Do you have a .gitignore that is specifically including those files? I believe that would take priority over the always ignore list.

belav avatar Jun 13 '25 15:06 belav