Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blazor app template fails when name with hyphens used #55388

Closed
1 task done
timheuer opened this issue Apr 26, 2024 · 1 comment
Closed
1 task done

Blazor app template fails when name with hyphens used #55388

timheuer opened this issue Apr 26, 2024 · 1 comment
Labels
area-blazor Includes: Blazor, Razor Components

Comments

@timheuer
Copy link
Member

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When you create a new Blazor app using the template with a name like name-with-hyphens it will fail in later stages due to some failed replacements in the template, namely default namespace

Expected Behavior

sourceName gets replaced appropriately with safe values where they are used

Steps To Reproduce

  1. File ... New Project ... Blazor (choose interactive render mode = Wasm)
  2. Choose name something-with-hyphens
  3. Add a class via Item template
  4. Compile

EXPECT: compile
ACTUAL: Fail because the class template brings in namespace and uses default namespace which in the csproj files still includes the hyphen in the name

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-blazor Includes: Blazor, Razor Components label Apr 26, 2024
@timheuer
Copy link
Member Author

Sorry, noticed the comment #52519 (comment) in the space issue...this is the same.

@timheuer timheuer closed this as not planned Won't fix, can't repro, duplicate, stale Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components
Projects
None yet
Development

No branches or pull requests

1 participant