Home > front end >  Blazor WASM in .NET 4.7 MVC
Blazor WASM in .NET 4.7 MVC

Time:09-21

Is it at all possible to drop Blazor WASM components into an old MVC app which is on .NET 4.7?

Can Blazor WASM components be exported as custom elements similar to in Angular?

For now, I want to avoid having to do a full upgrade of the app to .NET 5 if possible.

CodePudding user response:

No, there is no support for Blazor in .NET Framework web applications.

If a full upgrade is something you can't consider you might look at https://github.com/VisualReCode/Cocoon - this allows creating a reverse-proxy site on top of a Framework website with pass through from the new site to the old.

CodePudding user response:

Blazor has introduced experimental support for Custom elements and can generate Angular or React components. However, it's a .NET 6 feature and still on preview for now.

Look at this sample project.

  • Related