Skip to content

LogLevel settings not working for MsBuild #1586

@emil-matictribe

Description

@emil-matictribe

Environments:

  • CSharpier Version: 1.0.0
  • Running CSharpier via: MsBuild
  • Operating System: Windows 11
  • .csharpierrc Settings:
  • .editorconfig Settings:

Steps to reproduce:
Run release build with setting in Directory.Package.props:
<CSharpier_LogLevel>Error</CSharpier_LogLevel>

Expected behavior:
Expected check on unformatted files to log as error.

Actual behavior:
The check runs with information level logs and outputs: "There was no file or directory found at --loglevel"
It looks like "--loglevel" is inserted into the command when it should be "--log-level".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions