Movsar Bekaev
Movsar Bekaev

Reputation: 908

Renaming default folders in Blazor project

I want to rename the Shared folder in my Blazor Server project to Components, how can I do that properly? It seems like namespaces are based on folder names but there must be a way right?

Upvotes: 2

Views: 1287

Answers (1)

Henk Holterman
Henk Holterman

Reputation: 273494

You can just rename the Folder to Components. That does indeed change the namespace, edit the _Imports.razor file like this:

@*@using MyApp.Shared*@  -- remove this line
@using MyApp.Components

Upvotes: 2

Related Questions