Skip to content

Can not satisfy SA1649 "File name should match first type name" when type name contains backslash on Windows #3907

Open
@Arthri

Description

@Arthri

Assume that a file, Namee.cs, exists and has the following contents,

// \u0065 is 'e', but the same happens with other characters such as
// \u200B or zero-width space
class Name\u0065;

It is impossible to satisfy this condition on Windows because \ is not permitted in file names. A solution is to expand the escape making the declaration class Namee, but sometimes that is not desirable, especially with more exotic characters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions