Microsoft.AspNetCore.Components.WebAssembly.Server 10.0.0-preview.6.25321.102

Prefix Reserved
This is a prerelease version of Microsoft.AspNetCore.Components.WebAssembly.Server.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Microsoft.AspNetCore.Components.WebAssembly.Server --version 10.0.0-preview.6.25321.102
                    
NuGet\Install-Package Microsoft.AspNetCore.Components.WebAssembly.Server -Version 10.0.0-preview.6.25321.102
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="10.0.0-preview.6.25321.102" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="10.0.0-preview.6.25321.102" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Microsoft.AspNetCore.Components.WebAssembly.Server --version 10.0.0-preview.6.25321.102
                    
#r "nuget: Microsoft.AspNetCore.Components.WebAssembly.Server, 10.0.0-preview.6.25321.102"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Microsoft.AspNetCore.Components.WebAssembly.Server@10.0.0-preview.6.25321.102
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Microsoft.AspNetCore.Components.WebAssembly.Server&version=10.0.0-preview.6.25321.102&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.AspNetCore.Components.WebAssembly.Server&version=10.0.0-preview.6.25321.102&prerelease
                    
Install as a Cake Tool

About

Microsoft.AspNetCore.Components.WebAssembly.Server provides runtime server features for ASP.NET Core Blazor applications that have a client running under WebAssembly.

Key Features

  • Provides the ability to statically render components that utilize WebAssembly interactivity
  • Enables debugging functionality for code running in WebAssembly
  • Allows serialization and transmission of server-side authentication state for use during WebAssembly interactivity

How to Use

To use Microsoft.AspNetCore.Components.WebAssembly.Server, follow these steps:

Installation

dotnet add package Microsoft.AspNetCore.Components.WebAssembly.Server

Configuration

To enable WebAssembly interactivity in a Blazor Web app, configure it in your app's Program.cs:

builder.Services.AddRazorComponents()
    .AddInteractiveWebAssemblyComponents();

var app = builder.Build();

if (app.Environment.IsDevelopment())
{
    app.UseWebAssemblyDebugging();
}

app.UseAntiforgery();
app.MapStaticAssets();
app.MapRazorComponents<App>()
    .AddInteractiveWebAssemblyRenderMode()
    .AddAdditionalAssemblies(typeof(BlazorWebApp.Client._Imports).Assembly);

Make sure to update the call to AddAdditionalAssemblies with any client assemblies that should be included in the Blazor application.

Main Types

The main types provided by this package are:

  • WebAssemblyComponentsEndpointOptions: Provides options for configuring interactive WebAssembly components
  • AuthenticationStateSerializationOptions: Provides options for configuring the JSON serialization of the AuthenticationState to the WebAssembly client

Additional Documentation

For additional documentation and examples, refer to the official documentation on Blazor.

Feedback & Contributing

Microsoft.AspNetCore.Components.WebAssembly.Server is released as open-source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

GitHub repositories (159)

Showing the top 20 popular GitHub repositories that depend on Microsoft.AspNetCore.Components.WebAssembly.Server:

Repository Stars
dotnet/maui
.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
dotnet/runtime
.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
abpframework/abp
Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
dotnet-architecture/eShopOnWeb
Sample ASP.NET Core 8.0 reference application, now community supported: https://github.com/NimblePros/eShopOnWeb
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 10 Preview 7, 9, 8.0, 7.0, 6.0, 5.0, 3.1, 2.2, and 2.1,projects you can use. Readme contains explanations on all projects.
MudBlazor/MudBlazor
Blazor Component Library based on Material Design principles with an emphasis on ease of use and extensibility
RayWangQvQ/BiliBiliToolPro
B 站(bilibili)自动任务工具,支持docker、青龙、k8s等多种部署方式。敏感肌也能用。
elsa-workflows/elsa-core
A .NET workflows library
ant-design-blazor/ant-design-blazor
🌈A rich set of enterprise-class UI components based on Ant Design and Blazor.
kurrent-io/KurrentDB
KurrentDB is a database that's engineered for modern software applications and event-driven architectures. Its event-native design simplifies data modeling and preserves data integrity while the integrated streaming engine solves distributed messaging challenges and ensures data consistency.
ServiceStack/ServiceStack
Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all
protobuf-net/protobuf-net
Protocol Buffers library for idiomatic .NET
microsoft/fluentui-blazor
Microsoft Fluent UI Blazor components library. For use with ASP.NET Core Blazor applications
grpc/grpc-dotnet
gRPC for .NET
dotnetcore/WTM
Use WTM to write .netcore app fast !!!
radzenhq/radzen-blazor
Radzen Blazor is a set of 90+ free native Blazor UI components packed with DataGrid, Scheduler, Charts and robust theming including Material design and FluentUI.
fullstackhero/blazor-starter-kit
Clean Architecture Template for Blazor WebAssembly Built with MudBlazor Components.
Megabit/Blazorise
Blazorise is a component library built on top of Blazor with support for CSS frameworks like Bootstrap, Tailwind, Bulma, AntDesign, and Material.
linq2db/linq2db
Linq to database provider.
davidfowl/TodoApp
Todo application with ASP.NET Core Blazor WASM, Minimal APIs and Authentication