Reputation: 908
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
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