Skip to content

Cannot create a blazorwasm or blazor template project with name including emoji #41667

@radical

Description

@radical

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Project created with - dotnet new blazorwasm -o "blazorwasm_😀", fails to build with:

 $ dotnet build -bl
Restore complete (15.9s)
You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy
  blazorwasm_😀 failed with errors (1.8s)
    /private/tmp/bl/blazorwasm_😀/Program.cs(3,7): error CS0246: The type or namespace name 'blazorwasm__' could not be found (are you missing a using directive or an assembly reference?) [/private/tmp/bl/blazorwasm_😀/blazorwasm_😀.csproj]
    /private/tmp/bl/blazorwasm_😀/_Imports.razor(9,7): error CS0246: The type or namespace name 'blazorwasm__' could not be found (are you missing a using directive or an assembly reference?) [/private/tmp/bl/blazorwasm_😀/blazorwasm_😀.csproj]
    /private/tmp/bl/blazorwasm_😀/_Imports.razor(10,7): error CS0246: The type or namespace name 'blazorwasm__' could not be found (are you missing a using directive or an assembly reference?) [/private/tmp/bl/blazorwasm_😀/blazorwasm_😀.csproj]
    /private/tmp/bl/blazorwasm_😀/_Imports.razor(9,7): error CS0246: The type or namespace name 'blazorwasm__' could not be found (are you missing a using directive or an assembly reference?) [/private/tmp/bl/blazorwasm_😀/blazorwasm_😀.csproj]
    /private/tmp/bl/blazorwasm_😀/_Imports.razor(10,7): error CS0246: The type or namespace name 'blazorwasm__' could not be found (are you missing a using directive or an assembly reference?) [/private/tmp/bl/blazorwasm_😀/blazorwasm_😀.csproj]
    /private/tmp/bl/blazorwasm_😀/_Imports.razor(9,7): error CS0246: The type or namespace name 'blazorwasm__' could not be found (are you missing a using directive or an assembly reference?) [/private/tmp/bl/blazorwasm_😀/blazorwasm_😀.csproj]
    /private/tmp/bl/blazorwasm_😀/_Imports.razor(10,7): error CS0246: The type or namespace name 'blazorwasm__' could not be found (are you missing a using directive or an assembly reference?) [/private/tmp/bl/blazorwasm_😀/blazorwasm_😀.csproj]
    /private/tmp/bl/blazorwasm_😀/_Imports.razor(9,7): error CS0246: The type or namespace name 'blazorwasm__' could not be found (are you missing a using directive or an assembly reference?) [/private/tmp/bl/blazorwasm_😀/blazorwasm_😀.csproj]
    /private/tmp/bl/blazorwasm_😀/_Imports.razor(10,7): error CS0246: The type or namespace name 'blazorwasm__' could not be found (are you missing a using directive or an assembly reference?) [/private/tmp/bl/blazorwasm_😀/blazorwasm_😀.csproj]
    /private/tmp/bl/blazorwasm_😀/_Imports.razor(9,7): error CS0246: The type or namespace name 'blazorwasm__' could not be found (are you missing a using directive or an assembly reference?) [/private/tmp/bl/blazorwasm_😀/blazorwasm_😀.csproj]
    /private/tmp/bl/blazorwasm_😀/_Imports.razor(10,7): error CS0246: The type or namespace name 'blazorwasm__' could not be found (are you missing a using directive or an assembly reference?) [/private/tmp/bl/blazorwasm_😀/blazorwasm_😀.csproj]
    /private/tmp/bl/blazorwasm_😀/_Imports.razor(9,7): error CS0246: The type or namespace name 'blazorwasm__' could not be found (are you missing a using directive or an assembly reference?) [/private/tmp/bl/blazorwasm_😀/blazorwasm_😀.csproj]
    /private/tmp/bl/blazorwasm_😀/_Imports.razor(10,7): error CS0246: The type or namespace name 'blazorwasm__' could not be found (are you missing a using directive or an assembly reference?) [/private/tmp/bl/blazorwasm_😀/blazorwasm_😀.csproj]
    /private/tmp/bl/blazorwasm_😀/_Imports.razor(9,7): error CS0246: The type or namespace name 'blazorwasm__' could not be found (are you missing a using directive or an assembly reference?) [/private/tmp/bl/blazorwasm_😀/blazorwasm_😀.csproj]
    /private/tmp/bl/blazorwasm_😀/_Imports.razor(10,7): error CS0246: The type or namespace name 'blazorwasm__' could not be found (are you missing a using directive or an assembly reference?) [/private/tmp/bl/blazorwasm_😀/blazorwasm_😀.csproj]

Build failed with errors in 17.9s

This was with .net sdk 9.0.100-preview.3.24157.9. It is also reproducible with 8.0.200.

Expected Behavior

No response

Steps To Reproduce

  1. dotnet new blazorwasm -o "blazorwasm_😀"
  2. cd "blazorwasm_😀"
  3. dotnet build

Exceptions (if any)

No response

.NET Version

No response

Anything else?

.log appended to the name to satisfy github.
msbuild.binlog.log

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions