BlazorDeveloperTools 1.0.0-beta.1

This is a prerelease version of BlazorDeveloperTools.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package BlazorDeveloperTools --version 1.0.0-beta.1
                    
NuGet\Install-Package BlazorDeveloperTools -Version 1.0.0-beta.1
                    
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="BlazorDeveloperTools" Version="1.0.0-beta.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BlazorDeveloperTools" Version="1.0.0-beta.1" />
                    
Directory.Packages.props
<PackageReference Include="BlazorDeveloperTools" />
                    
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 BlazorDeveloperTools --version 1.0.0-beta.1
                    
#r "nuget: BlazorDeveloperTools, 1.0.0-beta.1"
                    
#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 BlazorDeveloperTools@1.0.0-beta.1
                    
#: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=BlazorDeveloperTools&version=1.0.0-beta.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=BlazorDeveloperTools&version=1.0.0-beta.1&prerelease
                    
Install as a Cake Tool

alternate text is missing from this package README image

Docs

Blazor Developer Tools

Ever wished you could right-click on a Blazor app and see the actual Razor markup instead of just HTML? Or click on any element and instantly know which .razor component it belongs to?

That's exactly what Blazor Developer Tools does. It adds a "Blazor" tab to Chrome/Edge DevTools that shows your component tree - just like React DevTools, but for Blazor.

Blazor DevTools in action

NuGet License

Features

  • 🔍 Component Tree Visualization - See your Blazor component hierarchy in Chrome/Edge DevTools
  • 🎯 Element Picker - Click any element on the page to identify its Blazor component
  • 📁 File Path Display - See which .razor file each component comes from
  • 🎨 CSS Isolation Support - Full support for Blazor CSS isolation
  • Debug & Production Modes - Works in both Debug builds and (optionally) Release builds

Installation

You need to install 2 components: this NuGet package and a chrome/edge extension.

1. Install the NuGet Package

dotnet add package BlazorDeveloperTools

Or add to your .csproj:

<PackageReference Include="BlazorDeveloperTools" Version="0.9.0" />

2. Install the Browser Extension

Usage

Basic Setup (Debug Mode)

Once installed, the package automatically adds component markers to your Blazor app in Debug mode. No additional configuration needed!

  1. Run your Blazor app in Debug mode
  2. Open Chrome/Edge DevTools (F12)
  3. Navigate to the "Blazor" tab
  4. See your component tree!

Production Mode (Optional)

To enable component markers in Release/Production builds:

<PropertyGroup>
  <EnableBlazorDevToolsInProduction>true</EnableBlazorDevToolsInProduction>
</PropertyGroup>

⚠️ Note: This adds small hidden markers to your HTML. Impact is minimal but consider the trade-offs for production use.

How It Works

  1. Build-time transformation: The NuGet package injects hidden marker elements into your Razor components during compilation
  2. Runtime detection: The browser extension detects these markers and builds a component tree
  3. DevTools integration: Displays the component hierarchy in a dedicated DevTools panel

Configuration Options

Control the tool's behavior via MSBuild properties:

<PropertyGroup>
  
  <EnableAutomaticMarkers>false</EnableAutomaticMarkers>
  
  
  <BdtVerbose>true</BdtVerbose>
  
  
  <EnableBlazorDevToolsInProduction>true</EnableBlazorDevToolsInProduction>
</PropertyGroup>

Contributing

This project is open source! We welcome contributions.

GitHub Repository

License

Licensed under the Apache License 2.0. See LICENSE for details.

Support


Built with ❤️ for the Blazor community by Joseph E. Gregory

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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.
  • net10.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-beta.5 111 1/29/2026
1.0.0-beta.4 53 1/29/2026
1.0.0-beta.3 50 1/29/2026
1.0.0-beta.2 81 1/22/2026
1.0.0-beta.1 59 1/14/2026
0.9.16 290 10/23/2025
0.9.15 195 10/23/2025
0.9.14 199 10/23/2025
0.9.13 188 10/22/2025
0.9.12 186 10/21/2025
0.9.11 188 10/21/2025
0.9.10 193 10/21/2025
0.9.9 121 10/18/2025
0.9.8 219 10/8/2025
0.9.7 188 10/8/2025
0.9.6 195 10/2/2025
0.9.5 202 10/2/2025
0.9.4 198 10/2/2025
0.9.3 209 10/2/2025
0.9.2 193 10/2/2025
Loading failed