fluentui-blazor
AGENTS.md4.8k starsChanged 4 months agoMITView on GitHub
This file provides context and instructions for AI coding agents working on the Microsoft Fluent UI Blazor components library. This is a .NET Blazor component library that provides Fluent UI design system components for Blazor applications. The library wraps Microsoft's official Fluent UI Web Components and provides additional components leveraging the Fluent Design System. Unit tests are in tests/Core/Components/ mirroring the component structure in src/Core/Components/. Follow Conventional Commits:
- Installs packages
Trending
More talk lately.about the whole repository
Who's talking about microsoft/fluentui-blazor
- dotnet/roslyn“CS8669 - #nullable enable does not work in razor files unless in code block”GitHub · May 17, 2023 · 15 reactions
- @baaijte.net“Only 87 stars to go on github.com/microsoft/fl... to get to 4k. Will you help us reach that goal before the …”Bluesky · Dec 4, 2024 · 9 likes
- MicrosoftEdge/WebView2Feedback“[Problem/Bug]: FluentUI ComboBox/Select don't accept selected option in WinUI WebView2”GitHub · May 8, 2024 · 4 reactions
- dotnet/roslyn“Razor tools are crashing in VS 2026”GitHub · Jan 14, 2026 · 2 reactions
- @svrooij.io“FluentUI for #blazor is almost at 4000 stars on GitHub? Can you help in making it to four thousand? …”Bluesky · Dec 4, 2024 · 2 likes
The biggest 5 of 39 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 39
Talked about on GitHub and Bluesky (39 times).
On GitHub · 36
- May 17, 2023CS8669 - #nullable enable does not work in razor files unless in code block — dotnet/roslyn15 reactions · 10 comments
- May 8, 2024[Problem/Bug]: FluentUI ComboBox/Select don't accept selected option in WinUI WebView2 — MicrosoftEdge/WebView2Feedback4 reactions · 3 comments
- Jan 14, 2026Razor tools are crashing in VS 2026 — dotnet/roslyn2 reactions · 24 comments
- May 2, 2024[Feature]: Allow binding to different Cultures for NumberField — microsoft/fluentui2 reactions · 9 comments
- May 17, 2023Document Blazor CSS Isolation Workflows — ni/nimble2 reactions
31 more on GitHub
- Sep 10, 2026fix(web-components): defer fallback custom-state attributes — microsoft/fluentui1 reaction · 4 comments
- Jul 14, 2026Implement all the features defined in PRD and TRD — devkimchi/az-sub-cost-management1 reaction
- Jun 7, 2026chore(deps): Bump the microsoft-platform group with 4 updates — Nerttiyana-Technologies/Stampd1 reaction · 2 comments
- Apr 22, 2026Update dependency Microsoft.FluentUI.AspNetCore.Components to 4.14.2 - autoclosed — archanox/GUNRPG1 reaction
- Mar 11, 2026Update .editorconfig to adjust indent sizes for various file types — Eternet/github1 reaction
- Oct 23, 2025Guidance on integrating build generated files into Static Web Assets — dotnet/AspNetCore.Docs1 reaction · 5 comments
- Aug 16, 2024[Feature]: TreeView Multiselection — microsoft/fluentui1 reaction · 6 comments
- Mar 7, 2024Remove key from overflow item to fix re-rendering — microsoft/aspire1 reaction
- Mar 6, 2024Resource commands menu goes off the bottom of the screen — microsoft/aspire1 reaction · 1 comment
- Jan 10, 2024Prevent use of local functions inside markup — dotnet/aspnetcore1 reaction · 4 comments
- Nov 27, 2023Use tri-state feature in FluentCheckbox — microsoft/aspire1 reaction · 2 comments
- Nov 2, 2023[Bug]: page with a lot of FluentButtons becomes slower and slower (web-components — microsoft/fluentui1 reaction · 3 comments
- Aug 16, 2023feat: add functionality for enabling Virtualized Listbox — microsoft/fast1 reaction · 10 comments
- Oct 5, 2026Bump Microsoft.FluentUI.AspNetCore.Components.Icons from 4.14.4 to 5.0.0 — AlexHedley/poker-recording0 reactions
- Oct 2, 2026Bump Microsoft.FluentUI.AspNetCore.Components from 4.14.4 to 5.0.0 — lfm-org/lfm0 reactions
- Oct 2, 2026Bump the dotnet-minor group with 4 updates — lfm-org/lfm0 reactions
- Oct 2, 2026chore: Bump Microsoft.FluentUI.AspNetCore.Components.Icons from 4.14.4 to 5.0.0 — MW-GC/EventManager0 reactions
- Oct 2, 2026chore: Bump Microsoft.FluentUI.AspNetCore.Components from 4.14.4 to 5.0.0 — MW-GC/EventManager0 reactions
- Oct 1, 2026Bump Microsoft.FluentUI.AspNetCore.Components from 4.14.4 to 5.0.0 — azabluda/InfoCarrier.Core0 reactions
- Oct 1, 2026Bump Microsoft.FluentUI.AspNetCore.Components from 4.14.4 to 5.0.0 — arika0093/BlazorLocalTime0 reactions · 1 comment
- Oct 1, 2026nuget-dressca-cms: Bump the fluentui-packages group with 2 updates — AlesInfiny/maris0 reactions · 1 comment
- Sep 29, 2026Bump Microsoft.FluentUI.AspNetCore.Components from 4.14.4 to 5.0.0 — justinyoo/spn-imda0 reactions
- Sep 28, 2026Bump Microsoft.FluentUI.AspNetCore.Components.Emoji from 4.14.4 to 5.0.0 — AlexHedley/Utility-Blazor0 reactions
- Sep 28, 2026Bump Microsoft.FluentUI.AspNetCore.Components from 4.14.4 to 5.0.0 — AlexHedley/Utility-Blazor0 reactions
- Sep 28, 2026Bump Microsoft.FluentUI.AspNetCore.Components and Microsoft.FluentUI.AspNetCore.Components.Icons — AliceNovel/AquaNotes0 reactions
- Aug 24, 2026chore(deps): Bump the microsoft-platform group with 19 updates — Nerttiyana-Technologies/Stampd0 reactions · 1 comment
- Jul 15, 2026Bump the web group with 5 updates — CorruptComputer/BlazorWasmOsmOauth0 reactions · 1 comment
- Jun 29, 2026Bump the microsoft-fluentui group with 2 updates — twsouthwick/obsidian-livesync-manager0 reactions
- May 28, 2026Bump Microsoft.FluentUI.AspNetCore.Components and Microsoft.FluentUI.AspNetCore.Components.Icons — Ozymandros/Godot-Generator0 reactions
- Jan 18, 2026Bump the nuget-dependencies group with 4 updates — macel94/blazorazdocustomextsample0 reactions
- Dec 10, 2024IL trimming support — havit/Havit.Blazor0 reactions · 1 comment
On Bluesky · 3
- Dec 4, 2024Only 87 stars to go on github.com/microsoft/fl... to get to 4k. Will you help us reach that goal before the end of the year? — @baaijte.net9 likes and reposts · 1 reply
- Dec 4, 2024FluentUI for #blazor is almost at 4000 stars on GitHub? Can you help in making it to four thousand? github.com/microsoft/fl... Just press… — @svrooij.io2 likes and reposts
- Nov 19, 2023📦 microsoft / fluentui-blazor ⭐ 1,950 (+12) 🗒 C# Microsoft Fluent UI Blazor components library. For use with .NET 6.0 or higher Blazor… — @github-trending.bsky.social2 likes and reposts
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository3 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- Fluent UI Blazor v5 — Usage GuideSkill
- csharp-naming-conventionsSkill
The file
We split this AGENTS.md into the rules it gives an agent
11 rules. About 1 is common, 6 are distinctive, and 4 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 84
Test file naming: {ComponentName}Tests.cs
- Very specific: line 85
Test method naming: {MethodName}_{Scenario}_{ExpectedBehavior}
- Distinctive: line 86
Always add or update tests when modifying components
- Distinctive: line 87
Run all tests before submitting a PR
- Distinctive: line 100
Use C# latest language features
- Distinctive: line 101
Follow Microsoft C# coding conventions
- Very specific: line 130
Run all unit tests: dotnet test tests/Core/Components.Tests.csproj
- Very specific: line 131
Ensure the build passes: dotnet build Microsoft.FluentUI-v5.sln
- Distinctive: line 132
Update documentation if needed
- Distinctive: line 154
If you encounter NPM authentication issues (E401):
- Common: line 179
Do not commit sensitive data or credentials
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
This file provides context and instructions for AI coding agents working on the Microsoft Fluent UI Blazor components library.
Project Overview
This is a .NET Blazor component library that provides Fluent UI design system components for Blazor applications. The library wraps Microsoft's official Fluent UI Web Components and provides additional components leveraging the Fluent Design System.
- Main Package:
Microsoft.FluentUI.AspNetCore.Components - Target Framework: .NET 8+
- License: MIT
- Language: C# with Razor components
- Documentation: https://www.fluentui-blazor.net
Repository Structure
src/
├── Core/ # Main component library
├── Core.Scripts/ # TypeScript/JavaScript for web components
└── Extensions/ # Additional packages (EF adapter, OData, etc.)
tests/
├── Core/ # Unit tests (bUnit)
└── Integration/ # Integration tests
examples/
├── Demo/ # Demo application
└── Samples/ # Sample projectsSetup Commands
Prerequisites
- .NET 8 SDK or later
- Node.js 22.x (for Core.Scripts project)
- Visual Studio 2026 (recommended on Windows)
Build Commands
# Build the entire solution
dotnet build Microsoft.FluentUI-v5.slnx
# Build only the core component library
dotnet build src/Core/Microsoft.FluentUI.AspNetCore.Components.csproj
# Build the demo application
dotnet build examples/Demo/FluentUI.Demo/FluentUI.Demo.csproj
# Clean the solution
dotnet clean Microsoft.FluentUI-v5.slnx
# Restore packages
dotnet restore Microsoft.FluentUI-v5.slnxRun the Demo
# Run demo application
dotnet run --project examples/Demo/FluentUI.Demo/FluentUI.Demo.csproj
# Watch mode (hot reload)
dotnet watch run --project examples/Demo/FluentUI.Demo/FluentUI.Demo.csprojTesting Instructions
Running Tests
# Run all unit tests
dotnet test tests/Core/Components.Tests.csproj
# Run specific test
dotnet test tests/Core/Components.Tests.csproj --filter "FullyQualifiedName~TestClassName"Unit Test Guidelines
- Tests use bUnit for Blazor component testing
- Tests use Verify for snapshot testing
- Test file naming:
{ComponentName}Tests.cs - Test method naming:
{MethodName}_{Scenario}_{ExpectedBehavior} - Always add or update tests when modifying components
- Run all tests before submitting a PR
Test File Location
Unit tests are in tests/Core/Components/ mirroring the component structure in src/Core/Components/.
Code Style Guidelines
C# Conventions
- Nullable: Enabled (
<Nullable>enable</Nullable>) - Warnings as Errors: Enabled (
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>) - Code Style: Enforced in build (
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>) - Use C# latest language features
- Follow Microsoft C# coding conventions
Component Development
- Components are in
src/Core/Components/ - Each component should have its own folder
- Include:
.razorfile,.razor.cscode-behind (if needed),.razor.cssstyles (if needed) - Expose design tokens for customization
- Ensure accessibility compliance
Razor Component Pattern
// Example component structure
public partial class FluentComponentName : FluentComponentBase
{
[Parameter]
public string? Property { get; set; }
[Parameter]
public EventCallback<T> OnEvent { get; set; }
}PR Guidelines
Before Submitting
- Rebase your branch from the target branch (do NOT use
git merge) - Run all unit tests:
dotnet test tests/Core/Components.Tests.csproj - Ensure the build passes:
dotnet build Microsoft.FluentUI-v5.sln - Update documentation if needed
Commit Messages
Follow Conventional Commits:
feat:- New featurefix:- Bug fixdocs:- Documentation changeschore:- Maintenance tasksrefactor:- Code refactoringtest:- Adding or updating tests
PR Checklist
- Tests added/updated for changes
- Changes have been tested locally
- Documentation updated if needed
- Follows project coding standards
NPM/JavaScript Setup (Core.Scripts)
If you encounter NPM authentication issues (E401):
cd src/Core.Scripts
# Install vsts-npm-auth
npm install -g vsts-npm-auth --registry https://registry.npmjs.com --always-auth false
# Get authentication token
vsts-npm-auth -config .npmrc -force
# Install packages
npm installImportant Files
Directory.Build.props- Central versioning and build configurationDirectory.Packages.props- Central package version management.github/CODEOWNERS- Code ownership (@vnbaaij @dvoituron)docs/contributing.md- Contribution guidelinesdocs/unit-tests.md- Detailed unit testing documentation
Security Considerations
- Do not commit sensitive data or credentials
- Review the
SECURITY.mdfile for security policies - Report security vulnerabilities through proper channels (not public issues)
Contributing Workflow
This repository uses a fork-based contribution model:
- Fork the repository from microsoft/fluentui-blazor
- Clone your fork locally
- Create a feature branch from the target branch (
dev) - Make changes and commit following conventional commit guidelines
- Push to your fork
- Create a Pull Request targeting the upstream repository
microsoft/fluentui-blazor
Remote Configuration
# Add upstream remote (if not already configured)
git remote add upstream https://github.com/microsoft/fluentui-blazor.git
# Fetch upstream changes
git fetch upstream
# Rebase your branch on upstream
git rebase upstream/devAdditional Resources
- Demo Site
- Discord Community
- GitHub Issues
- Contributing Guide
- Unit Tests Guide
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

