ASP.NET Blazor
ASP.NET Blazor guide for Trezo.
Overview
ASP.NET Blazor: The Framework for Building Interactive Web UIs with .NET
ASP.NET Blazor is a framework from Microsoft that enables developers to build rich, interactive web applications using .NET and C#. Blazor allows developers to use C# for both client-side and server-side code, providing a modern alternative to JavaScript-driven development. By combining the power of .NET with the flexibility of web technologies, Blazor streamlines full-stack development and improves productivity for developers accustomed to the .NET ecosystem.
Why Blazor Stands Out:
- C# on the Client and Server: Blazor lets you use C# for the entire application, enabling you to share code, libraries, and business logic across both client and server without needing JavaScript.
- Component-Based UI Model: Develop modular, reusable components that make your UI easy to maintain, test, and extend.
- WebAssembly and Server Hosting Models: Run your Blazor app in the browser with WebAssembly for near-native performance, or choose Blazor Server to manage updates and resources server-side, providing flexible options for deployment and scalability.
- Seamless Integration with .NET Ecosystem: Easily integrate with .NET libraries, APIs, and tools, including support for dependency injection, Entity Framework Core, and ASP.NET Core components.
- Real-Time Updates with SignalR: Enable interactive, real-time user interfaces with SignalR, which is seamlessly supported in Blazor Server, allowing you to deliver highly dynamic experiences.
Perfect for .NET Developers Building Modern, Cross-Platform Web Apps
Blazor empowers .NET developers to create web applications with C# and .NET expertise, providing a unified, familiar environment for both client and server logic. Whether you’re building for the web or mobile, Blazor offers a productive, efficient way to deliver robust applications within the ASP.NET Core ecosystem.
Prerequisites
macOS 12.0 or later versions.
Download and install
To start building .NET apps, download and install the .NET SDK.
Download .NET 8 SDK Arm64 (Apple Silicon) ->
Check everything installed correctly
Once you've installed, open a new terminal and run the following command:
dotnet --version
If the installation succeeded, you should see version 8.0.100
or higher outputted:
8.0.100
Run the app
Navigate to the new trezo-blazor
directory.
In your terminal, run the following command:
dotnet watch
The dotnet watch
command will build and start the app, and then update the app whenever you make code changes. You can stop the app at any time by selecting Ctrl+C
.
Wait for the app to display that it's listening on http://localhost:<port number>
and for the browser to launch at that address.
Once you get to the following page, you have successfully run the trezo-blazor app!
Support
If you need more details or encounter any issues, please contact the support team.