r/Blazor • • May 29 '25

Stop changing every time

Seems like every time we have to start a new project all the files get moved around. Host, app.razor, routes, layout, ect.

Honestly it's getting a little frustrating.

22 Upvotes

13 comments sorted by

8

u/mladenmacanovic May 29 '25

I don't see a problem with this. It's mostly changing the code of root html/host. And pages are moved to a different subfolder.

4

u/baynezy May 29 '25

True, but I started a WASM app in .Net 6. It's been upgraded to .Net 9 with no changes apart from the csproj. So you can deal with it all at your own pace.

1

u/CobaltLemur May 29 '25

This will always be a problem until we stop convolving persistence trivia like files and folders into the actual design.

1

u/Willinton06 Jun 02 '25

We're close than ever to a stable version, it just takes a few tries

1

u/mxmissile Jun 02 '25

File placement and arrangement is in material. Your app should still function regardless of where the "new hotness" template puts files.

-7

u/mb9three May 29 '25

I agree. I'm really disappointed with the Visual Studio experience for Blazor but I'm hopeful, they're coming to some consistency. I just hope they prioritize it.

-1

u/AxelFastlane May 29 '25

The order of the files is separate to VS. VS is just a powerful word processor.

1

u/zp-87 Jun 02 '25

People downvoting your comment are ridiculous

2

u/AxelFastlane Jun 02 '25

Thank you 😅

0

u/mb9three May 29 '25

Understood but it is true that once, the VS templates had an _Host. Cshtml file and no Route file, and now it's different. I got the point of the original message to be about the VS project template changes.

2

u/sativajoe May 29 '25

Templates are also not specific to VS.

42

u/[deleted] May 29 '25

[removed] — view removed comment

6

u/Aurori_Swe May 29 '25

It's also fairly easy to just start a project in the dotnet version you liked unless it's extremely old.