dotnet / dotnet/msbuild

Directory name with quotes confuse dotnet

Open
#12,598 2 comments 0 reactions 1 assignee Claimed by @MichalPavlik View on GitHub
triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

### Describe the bug

Creating a project in a directory with quotes fails.

### To Reproduce

```shell
$ 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
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.