Ad

Search This Blog

Monday, January 2, 2023

Blazor Server - Create your first app with Blazor Server

 Start Visual Studio and select Create a new project.


2) In the Create a new project window, type Blazor on the search box and hit Enter.
3) Select the Blazor Server App template and select Next.

4) In the Configure your new project window, enter BlazorApp as the project name and select Next.

5) In the Additional information window, select .NET 7.0 (Standard Term Suport) in the Framework drop-down if not already selected and select Create.

6) Your project is created and loaded in Visual Studio. Take a look at the contents of your project using Solution Explorer.

7) Several files were created to give you a simple Blazor app that is ready to run.
  
   
  • Program.cs is the entry point for the app that starts the server and where you configure the app services and middleware.
  • App.razor is the root component for the app.
  • The Pages directory contains some example web pages for the app.
  • BlazorApp.csproj defines the app project and its dependencies and can be viewed by double-clicking the BlazorApp project node in the Solution Explorer.
  • The launchSettings.json file inside the Properties directory defines different profile settings for the local development environment. A port number is automatically assigned at project creation and saved on this file.



Source collected from 
https://dotnet.microsoft.com/en-us/learn/aspnet/blazor-tutorial/create



No comments:

Post a Comment