Skip to content

.NET SDK 10.0.102 creates bin directories with literal backslash characters on MacOS #52764

@redarcstudio

Description

@redarcstudio

Description

The .NET SDK 10.0.102 on macOS creates build output directories with literal backslash characters in the path names (e.g., bin\Debug instead of bin/Debug), causing Git to treat them as files with escaped characters rather than normal directory paths.

Reproduction Steps

  1. Install .NET SDK 10.0.102 on macOS (tested on macOS with Apple Silicon via both Microsoft installer and Homebrew)
  2. Create any .NET project: dotnet new webapp
  3. Build: dotnet build
  4. Check filesystem: find bin -type d
  5. Observe: Directories like bin\Debug/net10.0/BuildHost-net472/ exist with literal backslashes

Expected behavior

Directories should use forward slashes: bin/Debug/net10.0/

Actual behavior

Directories created with backslashes: bin\Debug/net10.0/

Environment

  • OS: macOS Tahoe 26.2
  • .NET SDK: 10.0.102
  • Installation method: Both Microsoft installer and Homebrew reproduce the issue

Impact

Git cannot ignore these paths with standard .gitignore patterns, requires workaround using [\\] character class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    untriagedRequest triage from a team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions