blazorwasm
)blazorserver
)--help
option to the dotnet new
CLI command:Program.cs
: The app's entry point that sets up the:blazorwasm
).App
component, which is the root component of the app, is specified as the app
DOM element to the Add
method.ConfigureServices
method on the host builder (for example, builder.Services.AddSingleton<IMyDependency, MyDependency>();
).builder.Configuration
).Startup.cs
(Blazor Server): Contains the app's startup logic. The Startup
class defines two methods:ConfigureServices
: Configures the app's dependency injection (DI) services. In Blazor Server apps, services are added by calling AddServerSideBlazor, and the WeatherForecastService
is added to the service container for use by the example FetchData
component.Configure
: Configures the app's request handling pipeline:MapFallbackToPage('/_Host')
is called to set up the root page of the app (Pages/_Host.cshtml
) and enable navigation.wwwroot/index.html
(Blazor WebAssembly): The root page of the app implemented as an HTML page:App
component is rendered. The App
component (App.razor
) is specified as the app
DOM element to the AddComponent
method in Startup.Configure
._framework/blazor.webassembly.js
JavaScript file is loaded, which:App.razor
: The root component of the app that sets up client-side routing using the Router component. The Router component intercepts browser navigation and renders the page that matches the requested address.Pages
folder: Contains the routable components/pages (.razor
) that make up the Blazor app and the root Razor page of a Blazor Server app. The route for each page is specified using the @page
directive. The template includes the following:_Host.cshtml
(Blazor Server): The root page of the app implemented as a Razor Page:_framework/blazor.server.js
JavaScript file is loaded, which sets up the real-time SignalR connection between the browser and the server.App
component (App.razor
) is rendered.Counter
(Pages/Counter.razor
): Implements the Counter page.Error
(Error.razor
, Blazor Server app only): Rendered when an unhandled exception occurs in the app.FetchData
(Pages/FetchData.razor
): Implements the Fetch data page.Index
(Pages/Index.razor
): Implements the Home page.Shared
folder: Contains other UI components (.razor
) used by the app:MainLayout
(MainLayout.razor
): The app's layout component.NavMenu
(NavMenu.razor
): Implements sidebar navigation. Includes the NavLink
component (NavLink), which renders navigation links to other Razor components. The NavLink component automatically indicates a selected state when its component is loaded, which helps the user understand which component is currently displayed._Imports.razor
: Includes common Razor directives to include in the app's components (.razor
), such as @using
directives for namespaces.Data
folder (Blazor Server): Contains the WeatherForecast
class and implementation of the WeatherForecastService
that provide example weather data to the app's FetchData
component.wwwroot
: The Web Root folder for the app containing the app's public static assets.appsettings.json
(Blazor Server): Configuration settings for the app.$package_path
variable to enter the path to the Internet Explorer cab file:$install_wim_path
variable to enter the path to the Install.wim file, located inside the Sources folder of the ISO file.$install_wim_path
variable from the previous command.$image_name
- Enter the name of the image you want to mount.$mount_folder variable
- Specify the folder to use when accessing the contents of the Install.wim file.$capability_name
- Specify the name of the capability to install (in this case, the AppCompatibility capability).$package_path
- Specify the path to the package to install (in this case, Internet Explorer).$fod_drive
- Specify the drive letter of the mounted Server FOD image.$mount_folder
variable from previous commands: