Bit.BevTools.Loader 11.0.0

dotnet add package Bit.BevTools.Loader --version 11.0.0
                    
NuGet\Install-Package Bit.BevTools.Loader -Version 11.0.0
                    
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="Bit.BevTools.Loader" Version="11.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bit.BevTools.Loader" Version="11.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Bit.BevTools.Loader" />
                    
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 Bit.BevTools.Loader --version 11.0.0
                    
#r "nuget: Bit.BevTools.Loader, 11.0.0"
                    
#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 Bit.BevTools.Loader@11.0.0
                    
#: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=Bit.BevTools.Loader&version=11.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Bit.BevTools.Loader&version=11.0.0
                    
Install as a Cake Tool

Bit.BevTools.Loader

Opens bit BevTools on demand, so a Blazor WebAssembly app can lazy load Bit.BevTools.wasm and nobody downloads it until they ask for it. It is small, trimmable and AOT compatible, and it is the only BevTools assembly the app's startup code touches.


<PackageReference Include="Bit.BevTools" />
<PackageReference Include="Bit.BevTools.Loader" />


<BlazorWebAssemblyLazyLoad Include="Bit.BevTools.wasm" />
builder.Services.AddBitBevToolsLoaderServices();
@* MainLayout.razor *@
<BevToolsLoaderPanel />

@* anywhere, e.g. a diagnostics page *@
@inject BevToolsLoader BevToolsLoader
@if (BevToolsLoader.CanOpen)
{
    <button @onclick="BevToolsLoader.OpenAsync">Open dev tools</button>
}

When Bit.BevTools is among the assemblies the app starts with and should run from the first render (Development, or RegisterAtStartup = true), the loader registers it exactly as AddBitBevToolsServices does. Otherwise it installs hooks that cost next to nothing until BevTools is attached: a pass-through component activator, pass-through handlers in IHttpClientFactory pipelines, the framework's ActivitySource and meters, and the service collection for the Services panel. OpenAsync then loads BevTools, attaches it to the running app and opens it. Add BevToolsHttpHookHandler to a hand-built HttpClient pipeline to have its requests recorded too.

The app's panels, extensions and every other BevTools option go through ConfigureBevTools, applied both when BevTools registers at startup and to every session attached later. The callback gets the BevToolsOptions typed object - startup code cannot name the type - and runs only once BevTools is loaded; integration packages it uses are listed in AdditionalAssemblies (and marked lazy wherever Bit.BevTools is):

builder.Services.AddBitBevToolsLoaderServices(o =>
{
    o.AdditionalAssemblies.Add("Bit.BevTools.Belemetry");
    o.ConfigureBevTools(static options => AppBevTools.Configure((BevToolsOptions)options));
});

A public type of an assembly the router routes must not derive from or implement a Bit.BevTools type (the router lists those types before BevTools is loaded): keep such panels, extensions and commands internal, or in a lazily loaded assembly of their own. OpenAsync("logs", "level:warning") opens a given panel; PrefetchAsync() downloads BevTools ahead of time so a later open works offline; when the download fails, DownloadFailed is true and Problem says why. The BevTools guide has the details, PWAs included.

An attached BevTools sees what happens after the attach, plus what the parts named in AutoStart collected before it. AutoStart = BevToolsAutoStart.Logs captures what the app's loggers write from startup, on its own and inside the loader - nothing of Bit.BevTools is loaded and nothing else is instrumented - keeping the newest MaxLogs entries at MinimumLogLevel or above, as texts and immutable values, never the logged objects; the attached session shows them in its Logs panel, redacted and read at its value access like any entry:

builder.Services.AddBitBevToolsLoaderServices(o => o.AutoStart = BevToolsAutoStart.Logs);

In a process that serves many users (Blazor Server, prerendering) CanOpen is false outside Development unless AllowInMultiUserHost is set, because the panel would show whoever opens it the server side objects of their circuit. There, AutoStart keeps log entries per circuit, the ones written on its dispatcher, within one budget for all circuits (ten times MaxLogs), only where an attach is allowed, and outside Development as names, types and templates only. Until a session takes them over they stay in memory unredacted (the redactor is part of Bit.BevTools), and are redacted at the handover, before anything can show them.

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.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Bit.BevTools.Loader:

Package Downloads
Bit.BevTools

Runtime instrumentation and in-app developer tools for Blazor: component tree, render profiler, event timeline, state, network, JS interop, errors, DI inspector and diagnostics, plus the extension API (panels, state providers, diagnostic rules, commands, timeline events) libraries use to integrate with it.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.0 100 12/2/2026
11.0.0-pre-26 484 11/30/2026
11.0.0-pre-25 931 11/26/2026
11.0.0-pre-24 553 11/25/2026
11.0.0-pre-23 300 11/19/2026
11.0.0-pre-22 301 11/18/2026
11.0.0-pre-21 245 11/17/2026
11.0.0-pre-20 736 11/15/2026
11.0.0-pre-19 397 11/13/2026
11.0.0-pre-18 417 11/11/2026
11.0.0-pre-17 760 11/4/2026
11.0.0-pre-16 375 11/2/2026
11.0.0-pre-15 605 10/27/2026
11.0.0-pre-14 113 10/26/2026
11.0.0-pre-13 85 10/26/2026
11.0.0-pre-12 99 10/26/2026
11.0.0-pre-11 128 10/25/2026
10.7.0 510 10/25/2026
10.7.0-pre-04 225 10/25/2026
10.7.0-pre-03 498 10/22/2026
Loading failed