Skip to content

With "Do not use top-level statements" checked, in Blazor WebAssembly App/ Blazor Server App/gRPC, the namespace is "Company.WebApplication1" rather than the solution name. #41529

@Andy-Win

Description

@Andy-Win

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

In Blazor WebAssembly App/ Blazor Server App/gRPC, the namespace is "Company.WebApplication1" rather than the solution name.
image

Expected Behavior

The namespace should be same as the solution name.
image

Steps To Reproduce

In latest Dev17.2 GA(Include latest 6.0.300 SDK), Create .NET 6.0 ~ Blazor Server App/Blazor WebAssembly App/gRPC project with checking "Do not use top-level statements" checkbox..
After project created, open Program.cs file, the namespace is "Company.WebApplication1", rather than the solution name.

Exceptions (if any)

No response

.NET Version

6.0.300

Anything else?

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions