Skip to content

Directory name with quotes confuse dotnet #12598

@rolfbjarne

Description

@rolfbjarne

Describe the bug

Creating a project in a directory with quotes fails.

To Reproduce

$ mkdir 'dir"with"quote'
$ cd dir\"with\"quote
$ dotnet new console
The template "Console App" was created successfully.

Processing post-creation actions...
Restoring /Users/rolf/test/dotnet/dir"with"quote/dir"with"quote.csproj:
MSBUILD : error MSB1009: Project file does not exist.
Switch: /Users/rolf/test/dotnet/dirwithquote/dirwithquote.csproj
Restore failed.
Post action failed.
Manual instructions: Run 'dotnet restore'
$ dotnet --version
10.0.100-rc.1.25451.107

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions