Skip to content

"dotnet run" command fails if path has spaces #9948

@GabrielBB

Description

@GabrielBB

Describe the bug

"dotnet run" command does not work. It says "but dotnet-C:\Users\Gabriel does not exist" when my windows user is "C:\Users\Gabriel Brito...". It looks like the problem is the space in the user name.

To Reproduce

Steps to reproduce the behavior:

  1. Windows account with spaces in the name. For example: "C:\Users\Gabriel Brito..."
  2. Using ASP.NET Core 'SDK 3.0.100-preview4-011223'
  3. Run these commands:
dotnet new -i Microsoft.AspNetCore.Blazor.Templates::3.0.0-preview4-19216-03
dotnet new blazor -o WebApplication1
cd WebApplication1
dotnet run
  1. See error in Screenshots

Expected behavior

Application should be deployed on 5001. See: Get started with Blazor

Screenshots

image

Additional context

I have (not because i want to) Windows 8.1. Here is "dotnet --info" output:

image

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