Skip to content

How to format code without a solution / csproj file in the latest (6.0+) version #1317

@mikeage

Description

@mikeage

Hi,

I recently updated from v5.0.211103 to the tip, and it seems like --folder is no longer supported. Whether I run dotnet format (6.0.100-preview.7.21379.14) or dotnet-format (7.0.245108+2c6ded76878d585a4f037c32ba0fbb2685f27b05), it doesn't recognize the --folder command, and without it, it complains about a missing workspace (I actually don't have an .sln or .csproj file at all; this is a Unity project).

What is the proper syntax in the latest versions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionThis issue is requesting information about dotnet-format

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions