Skip To Main Content

Search Menu

Breadcrumb

Create a new folder named "Models" and add a C# class file named "BlogPost.cs". This class will represent a single blog post.

If you're starting today , use OpenSilver (not legacy CSHTML5). If you're building a new web app from scratch, consider Blazor instead – but for migrating existing XAML code, OpenSilver is excellent.

When you run the above code, the browser renders:

CSHTML5 is developed by , a French software company. The tool integrates deeply into Microsoft Visual Studio , providing a familiar IDE experience. It offers Intellisense, drag-and-drop UI design, and standard debugging tools.

Instead of rewriting your C# business logic into JavaScript, CSHTML5/OpenSilver does this at compile time:

– your C# runs in the browser!

: All application logic, including data binding and event handling, is written in C#.