Skip to content

msbuild: on Unix a project whose path holds a backslash is evaluated, though MSBuild cannot load it (MSB4025) #995

Closed

Description

@Smaug123

Found in #992 (#987), unrelated to that fix.

On Unix, MSBuild cannot load a project whose own path contains a \. It reports MSB4025, because it looks for the path with the backslash read as a separator (p/q/…). Our walk evaluates such a project and commits values. That is a wrong commit for a project MSBuild refuses to load.

Suggested fix. On Unix, treat a project path, and probably any imported file's path, that contains \ as a rejection, or at least decline. Check MSBuild's exact behaviour for imports too: an import whose resolved path holds a \ after the fixup has run. Then add a backslash-in-name dimension to the import-graph generative harness.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:msbuildbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions