If you want to build a SPA, you would choose Vue, React, Angular or any other currently popular JS framework for front-end anyway.
However, for a traditional web application, what's wrong with using ASP.NET Razor?
Also, for desktop development, I would recommend the excellent Avalonia: https://avaloniaui.net/.
Don't use C# for web UIs; use it for web backends.
Stick with HTMX, Vue, React, Angular, etc. for FE.