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.
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.
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 theProperties
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