syncfusion-blazor-common
Set up Syncfusion Blazor components — project creation, NuGet packages, service registration, script loading, bUnit testing, and localization & globalization configuration
What this skill does
# Syncfusion Blazor Getting Started Setup and configuration guide for Syncfusion Blazor components in Blazor Web Apps. ## When to Use Use this skill when you need to: - Set up a new Blazor project with Syncfusion Blazor components - Create a Blazor Web App with specific .NET version targeting (net8.0, net9.0, net10.0, etc.) - Add Syncfusion components (Grid, Button, etc.) with features based on context - Optimize script loading with static assets or CDN - Set up bUnit testing for Syncfusion components ## Quick Reference - **Getting Started**: See [getting-started.md](references/getting-started.md) for full project setup steps - **Scripts & CDN**: See [add-script-reference-and-cdn.md](references/add-script-reference-and-cdn.md) for script loading options - **bUnit Testing**: See [bunit-setup.md](references/bunit-setup.md) for unit testing setup - **Localization & Globalization**: See [localization-globalization.md](references/localization-globalization.md) for culture and localization setup ## Prerequisites - .NET 8+ SDK - Blazor Web App project - Syncfusion account ([free trial](https://www.syncfusion.com/account/manage-trials/start-trials)) - NuGet package access ## 1. Getting Started **Detailed guide**: [getting-started.md](references/getting-started.md) ### Quick Setup 1. Create Blazor Web App with your chosen render mode and explicit .NET version (e.g., `.NET 10`) 2. Install `Syncfusion.Blazor.Grid` + `Syncfusion.Blazor.Themes` NuGet packages. All individual packages are listed [here](https://blazor.syncfusion.com/documentation/nuget-packages) 3. Add `@using Syncfusion.Blazor` and relevant component namespaces to `_Imports.razor` 4. Register `builder.Services.AddSyncfusionBlazor()` in `Program.cs` 5. Add theme CSS and script references to `App.razor` 6. Use Syncfusion components in your pages **Key Rule**: For Auto/WASM modes → register in **both** server and client projects **Important**: Always specify the target .NET framework version when creating projects to ensure compatibility ### Quick Start Options - **Blazor Playground**: Browser-based, no local install - **Template Studio**: Pre-configured VS/VS Code project templates ## 2. Script References and CDN **Detailed guide**: [add-script-reference-and-cdn.md](references/add-script-reference-and-cdn.md) ### Script Loading Options | Method | Best For | |--------|----------| | **Static Web Assets** (Recommended) | Optimal performance, offline support | | **CDN** | Cloud-hosted, quick setup | | **Individual Scripts** | Minimal component usage | ## 3. bUnit Testing **Detailed guide**: [bunit-setup.md](references/bunit-setup.md) Unit test Syncfusion Blazor components with [bUnit](https://bunit.dev). ### Required Setup Install `bunit` NuGet package, then register in each test: ```csharp using var ctx = new TestContext(); ctx.Services.AddSyncfusionBlazor() .Replace(ServiceDescriptor.Transient<IComponentActivator, SfComponentActivator>()); ctx.Services.AddOptions(); ``` ### Test Pattern 1. `RenderComponent<TPage>()` → render 2. `FindComponent<SfButton>()` → locate 3. `.Click()` → interact 4. `MarkupMatches(...)` → assert Works with xUnit and NUnit (use `Bunit.TestContext` for NUnit to avoid naming conflicts) ## 4. Localization and Globalization **Detailed guide**: [localization-globalization.md](references/localization-globalization.md) Configure multi-language support and culture-specific formatting for Syncfusion Blazor components. ### Key Concepts - **Internationalization (i18n)**: Parsing and formatting dates, times, numbers, and currencies - **Localization (l10n)**: Adding culture-specific customizations and translating UI text - **Globalization**: Combines both i18n and l10n ### Quick Setup 1. Download and add culture-based `.resx` resource files from [GitHub](https://github.com/syncfusion/blazor-locale) - **ASK PERMISSION BEFORE DOWNLOAD THIS** 2. Create a `SyncfusionLocalizer` class implementing `ISyncfusionStringLocalizer` 3. Register in `Program.cs`: ```csharp builder.Services.AddSyncfusionBlazor(); builder.Services.AddSingleton(typeof(ISyncfusionStringLocalizer), typeof(SyncfusionLocalizer)); ``` 4. Set culture statically or dynamically (server, WebAssembly, or MAUI apps) 5. Create a `CultureSwitcher` component for dynamic culture selection
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.