Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .agents/context/project.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ changes; if they disagree with this file, they win.

## Stack

- Language: C# (nullable annotations), multi-targeted `net8.0`, `net9.0`, `net10.0`; SDK pinned
- Language: C# (nullable annotations), multi-targeted `net10.0`, `net11.0`; SDK pinned
in `global.json`
- Framework: Blazor Razor class library (`IgniteUI.Blazor.Lite`) wrapping the
`igniteui-webcomponents` custom elements
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/maintain-trim-compatibility/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ The library ships `IsTrimmable` + the AOT/single-file analyzers (`IsAotCompatibl
## Verification

- `dotnet build src/IgniteUI.Blazor.Lite.csproj` must be free of IL diagnostics (they fail the build).
- For changes touching reflection, serialization, or annotations, run the automated browser checks over the trimmed publish: `dotnet test tests/IgniteUI.Blazor.Lite.IntegrationTests --filter Category=TrimmedPublish --settings .runsettings` (`TrimmedPublishSmokeTest`; publishes the smoke app net10.0 on demand). It is category-scoped — not part of the per-component integration sweep — and covers net10.0 only; the manual checklist in `tests/IgniteUI.Blazor.Lite.PublishSmoke/README.md` covers the other TFMs. Trimming only happens at publish (`dotnet run` proves nothing).
- For changes touching reflection, serialization, or annotations, run the automated browser checks over the trimmed publish: `dotnet test tests/IgniteUI.Blazor.Lite.IntegrationTests --filter Category=TrimmedPublish --settings .runsettings` (`TrimmedPublishSmokeTest`; each TFM run serves the smoke app's publish output for its own TFM, publishing it on demand). It is category-scoped — not part of the per-component integration sweep. Trimming only happens at publish (`dotnet run` proves nothing).
- Verify claims about linker behavior empirically in the smoke app — a control-vs-fix publish pair, not reasoning from documentation alone.
- For AOT changes: `tests/IgniteUI.Blazor.Lite.AotSmoke` runs the RequiresDynamicCode-adjacent paths under real ILC (CI does this on linux-x64; locally `dotnet run --project tests/IgniteUI.Blazor.Lite.AotSmoke -c Release -p:SimulateNoDynamicCode=true` covers the interpreter paths without the native toolchain — see its README).
8 changes: 4 additions & 4 deletions .agents/skills/write-library-tests/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Three test projects under `tests/`, two suites:

| Project | Suite | What it is |
|---|---|---|
| `IgniteUI.Blazor.Tests` | **Unit** | xUnit + bUnit, multi-targeted `net8.0`/`net9.0`/`net10.0`; renders components in-process with a recording JS runtime — no browser |
| `IgniteUI.Blazor.Lite.IntegrationTests` | **Integration** | NUnit + Playwright; one generated test fixture per component |
| `IgniteUI.Blazor.Tests` | **Unit** | xUnit + bUnit, multi-targeted `net10.0`/`net11.0`; renders components in-process with a recording JS runtime — no browser |
| `IgniteUI.Blazor.Lite.IntegrationTests` | **Integration** | NUnit + Playwright; one generated test fixture per component; multi-targeted `net10.0`/`net11.0` (with the TestBed), the TFMs run one after another since the TestBed uses a fixed port |
| `IgniteUI.Blazor.Lite.TestBed` | (integration host) | Blazor app the integration tests drive; renders one component per run and sweeps its surface |

## How the suites divide the work
Expand Down Expand Up @@ -41,10 +41,10 @@ The suites overlap on purpose but answer different questions. Integration proves
### Running

```
dotnet test tests/IgniteUI.Blazor.Tests -f net10.0 --nologo --filter "FullyQualifiedName~<Name>Tests"
dotnet test tests/IgniteUI.Blazor.Tests -f net11.0 --nologo --filter "FullyQualifiedName~<Name>Tests"
```

- Iterate on one TFM (`-f net10.0`); finish with a full run on all TFMs (drop `-f`).
- Iterate on one TFM (`-f net11.0`); finish with a full run on all TFMs (drop `-f`).
- Contract failure stacks carry the violated contract line as the top frame — the test UI navigates to the spec, not the shared runner.

### Conventions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ Contract failures carry the violated member and, as the top stack frame, the con
## Verify

```
dotnet test tests/IgniteUI.Blazor.Tests/IgniteUI.Blazor.Tests.csproj -f net10.0 --nologo --filter "FullyQualifiedName~<Name>Tests"
dotnet test tests/IgniteUI.Blazor.Tests/IgniteUI.Blazor.Tests.csproj -f net11.0 --nologo --filter "FullyQualifiedName~<Name>Tests"
```

Common failures:
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ body:
id: dotnet-version
attributes:
label: .NET Version
description: The version of .NET your project targets (e.g. 8.0, 9.0).
placeholder: e.g. 9.0
description: The version of .NET your project targets (e.g. 10.0, 11.0).
placeholder: e.g. 11.0
validations:
required: true

Expand Down
2 changes: 1 addition & 1 deletion .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ This repository is the **source code for the Ignite UI for Blazor component libr

## Build & Tooling

- **Multi-target**: `net8.0`, `net9.0`, `net10.0`
- **Multi-target**: `net10.0`, `net11.0`
- **C# build**: `dotnet build` - produces the Razor class library
- **TS build**: `npm run build` - type-checks and bundles the JS interop (vite, ESM) into static web assets; `npm test` checks the built output

Expand Down
16 changes: 7 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

# The SDK is pinned via global.json (10.0.x builds all TFMs);
# older runtimes are needed to run tests targeting net8.0/net9.0.
# The SDK is pinned via global.json (11.0.x builds all TFMs);
# the 10.0 runtime is needed to run tests targeting net10.0.
- name: Setup .NET
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: |
8.0.x
9.0.x
10.0.x
11.0.x

# Folder mode formats files directly without loading MSBuild projects —
# full `dotnet format` corrupts sources on multi-targeted projects
Expand All @@ -59,7 +58,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 22
node-version: 26
cache: npm

- name: Install npm dependencies
Expand All @@ -83,9 +82,8 @@ jobs:
# Trimmed publish of the smoke app fails on any linker warning; publish runs per TFM
- name: Publish trimmed smoke app
run: |
dotnet publish tests/IgniteUI.Blazor.Lite.PublishSmoke --configuration Release --framework net8.0
dotnet publish tests/IgniteUI.Blazor.Lite.PublishSmoke --configuration Release --framework net9.0
dotnet publish tests/IgniteUI.Blazor.Lite.PublishSmoke --configuration Release --framework net10.0
dotnet publish tests/IgniteUI.Blazor.Lite.PublishSmoke --configuration Release --framework net11.0

# NativeAOT (ILC) gate: publishes the console smoke app rooting the whole library
# (fails on ILC warnings) and runs its checks — behavior the build analyzer cannot see.
Expand All @@ -94,7 +92,7 @@ jobs:
run: |
dotnet publish tests/IgniteUI.Blazor.Lite.AotSmoke --configuration Release -r linux-x64
status=0
tests/IgniteUI.Blazor.Lite.AotSmoke/bin/Release/net10.0/linux-x64/publish/IgniteUI.Blazor.Lite.AotSmoke || status=$?
tests/IgniteUI.Blazor.Lite.AotSmoke/bin/Release/net11.0/linux-x64/publish/IgniteUI.Blazor.Lite.AotSmoke || status=$?
test "$status" -eq 100

- name: Run .NET tests with coverage
Expand All @@ -107,7 +105,7 @@ jobs:

- name: Install Playwright
shell: pwsh
run: ./tests/IgniteUI.Blazor.Lite.IntegrationTests/bin/Release/net10.0/playwright.ps1 install
run: ./tests/IgniteUI.Blazor.Lite.IntegrationTests/bin/Release/net11.0/playwright.ps1 install

- name: Run Bulk API Automation
run: >
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/igniteui-blazor-lite-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ concurrency:

env:
BUILD_CONFIGURATION: Release
DOTNET_VERSION: "10.0.x"
NODE_VERSION: "22"
DOTNET_VERSION: "11.0.x"
NODE_VERSION: "26"
VERSION: ${{ github.ref_name }}
PACKAGE_ID: IgniteUI.Blazor.Lite
PROJECT_PATH: src/IgniteUI.Blazor.Lite.csproj
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/wasm-aot-smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ jobs:
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: |
8.0.x
9.0.x
10.0.x
11.0.x

- name: Setup Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 22
node-version: 26
cache: npm

- name: Install npm dependencies
Expand All @@ -41,21 +40,23 @@ jobs:
- name: Install wasm-tools workload
run: dotnet workload install wasm-tools

# Restore ignores --framework, and restoring net8/net9 with AOT on needs wasm-tools-net8/-net9.
# TargetFrameworks limits restore to net10.
# Restore ignores --framework, and restoring net11 with AOT on needs wasm-tools-net11.
# TargetFrameworks limits restore to net11.
- name: Publish smoke app with AOT compilation
run: dotnet publish tests/IgniteUI.Blazor.Lite.PublishSmoke --configuration Release --framework net10.0 -p:TargetFrameworks=net10.0 -p:RunAOTCompilation=true
run: dotnet publish tests/IgniteUI.Blazor.Lite.PublishSmoke --configuration Release --framework net11.0 -p:TargetFrameworks=net11.0 -p:RunAOTCompilation=true

# The suite multi-targets; only its net11.0 run serves the AOT output published above
# (a net10.0 run would publish and test a non-AOT net10 build instead).
- name: Build integration tests
run: dotnet build tests/IgniteUI.Blazor.Lite.IntegrationTests --configuration Release
run: dotnet build tests/IgniteUI.Blazor.Lite.IntegrationTests --configuration Release --framework net11.0

- name: Install Playwright
shell: pwsh
run: ./tests/IgniteUI.Blazor.Lite.IntegrationTests/bin/Release/net10.0/playwright.ps1 install
run: ./tests/IgniteUI.Blazor.Lite.IntegrationTests/bin/Release/net11.0/playwright.ps1 install

# The TrimmedPublish fixture serves whatever publish output exists — here, the AOT-compiled one.
- name: Run browser checks against the AOT publish
run: >
dotnet test ./tests/IgniteUI.Blazor.Lite.IntegrationTests/IgniteUI.Blazor.Lite.IntegrationTests.csproj
--settings ./.runsettings --no-build --configuration Release
--settings ./.runsettings --no-build --configuration Release --framework net11.0
--filter Category=TrimmedPublish
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- **Date Range Picker:** `Select` and `SelectAsync` now apply the range they are given, instead of clearing the picker's value. [#174](https://github.com/IgniteUI/igniteui-blazor/issues/174)

### Breaking Changes

- The library targets `net10.0` and `net11.0`. It no longer targets `net8.0` and `net9.0`, which reach the end of support with the release of .NET 11. Apps on .NET 8 or 9 stay on 1.0.x; to update, retarget the app to .NET 10 or later.
Comment thread
kdinev marked this conversation as resolved.
Resolved
- Apps on .NET 11 WebAssembly need a browser that supports WebAssembly exception handling (`exnref`); see the [Blazor supported platforms](https://learn.microsoft.com/aspnet/core/blazor/supported-platforms). The .NET 11 runtime does not start in older browsers. This is a requirement of .NET 11, not of the library.

## 1.0.1 - 2026-10-29

### Fixed
Expand Down
18 changes: 9 additions & 9 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,24 @@
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>

<!-- The library multi-targets net8.0/net9.0/net10.0 and needs a matching
<!-- The library multi-targets net10.0/net11.0 and needs a matching
Microsoft.AspNetCore.Components.Web major version per TFM. -->
<ItemGroup>
<PackageVersion Include="Microsoft.AspNetCore.Components.Web" Version="8.0.0" Condition="'$(TargetFramework)' == 'net8.0'" />
<PackageVersion Include="Microsoft.AspNetCore.Components.Web" Version="9.0.0" Condition="'$(TargetFramework)' == 'net9.0'" />
<PackageVersion Include="Microsoft.AspNetCore.Components.Web" Version="10.0.0" Condition="'$(TargetFramework)' == 'net10.0'" />
<PackageVersion Include="Microsoft.AspNetCore.Components.Web" Version="11.0.0" Condition="'$(TargetFramework)' == 'net11.0'" />
</ItemGroup>

<ItemGroup>
<!-- Testing -->
<PackageVersion Include="bunit" Version="2.8.6" />
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="10.0.14" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="10.0.9" />
<PackageVersion Include="Microsoft.Extensions.Hosting.Abstractions" Version="10.0.9" />
<!-- TestBed host & integration suite run per library TFM, so these follow the TFM's major version. -->
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="10.0.14" Condition="'$(TargetFramework)' == 'net10.0'" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="11.0.0" Condition="'$(TargetFramework)' == 'net11.0'" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="10.0.9" Condition="'$(TargetFramework)' == 'net10.0'" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="11.0.0" Condition="'$(TargetFramework)' == 'net11.0'" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageVersion Include="Microsoft.Playwright.NUnit" Version="1.49.0" />
<PackageVersion Include="Microsoft.Playwright.NUnit" Version="1.65.1" />
<PackageVersion Include="Moq" Version="4.20.72" />
<PackageVersion Include="NUnit" Version="4.2.2" />
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
Expand All @@ -29,9 +30,8 @@
<PackageVersion Include="xunit" Version="2.9.2" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" />
<!-- Latest for TestBed.Client & Publish smoke app (trimmed WASM publish of the library, per library TFM) -->
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0" Condition="'$(TargetFramework)' == 'net8.0'" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.0" Condition="'$(TargetFramework)' == 'net9.0'" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.0" Condition="'$(TargetFramework)' == 'net10.0'" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly" Version="11.0.0" Condition="'$(TargetFramework)' == 'net11.0'" />
<!-- Samples / stories -->
<PackageVersion Include="BlazingStory" Version="1.0.0-preview.84" />
<PackageVersion Include="MD2RazorGenerator" Version="1.2.4" />
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ The [skills/](skills/README.md) directory contains skill files and an `AGENTS.md

## Building and Running Locally

**Prerequisites:** [.NET SDK](https://dotnet.microsoft.com/download) 10.0 and [Node.js](https://nodejs.org/) 22.12 or later (the Vite build requires it). The library targets `net8.0`, `net9.0` and `net10.0`.
**Prerequisites:** [.NET SDK](https://dotnet.microsoft.com/download) 11.0 and [Node.js](https://nodejs.org/) 22.12 or later (the Vite build requires it). The library targets `net10.0` and `net11.0`.

```bash
# 1. Install Node dependencies
Expand Down
1 change: 1 addition & 0 deletions ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
4. **[DONE]** Aligned to `igniteui-webcomponents@7.3.2` - QR code image export, Chip `Outlined`, Splitter collapsed panes and `LayoutChanged`, Tabs `SelectedTab`, Icon registration options
5. **[DONE]** `IgbBreadcrumbs` - navigation trail of `IgbBreadcrumb` items with a configurable separator icon
6. **[DONE]** Aligned to `igniteui-webcomponents@7.4.1` - popup `ScrollStrategy` on Combo, Select, Dropdown, Date Picker, Date Range Picker, Color Picker and Tooltip, native CSS anchor positioning, Button Group radio keyboard pattern
7. **[DONE]** .NET 11 support - the library targets `net10.0` and `net11.0`; `net8.0` and `net9.0` are dropped with their end of support

## Going down the road

Expand Down
4 changes: 2 additions & 2 deletions docs/TRIMMING.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ AOT diagnostics (IL3xxx) build as errors like trim ones (`dotnet_analyzer_diagno

1. **Avoid dynamic code outright** where a static shape exists.
2. **Expression trees: the delegate type must be statically known** — use `Expression.Lambda<TDelegate>(...)` or `Expression.Lambda(Type delegateType, ...)` with a `typeof` literal (see the closed delegate-type map in `JsonDataSourceSchema`). Never `Expression.GetFuncType` or the non-generic `Lambda(body, params)` overloads — those are the `RequiresDynamicCode` sites; `Compile()` itself is AOT-safe (interprets).
3. **`MakeGenericType`/`MakeGenericMethod` only over closed sets** that are statically visible or class-constrained (the net9+ analyzer proves the `where T : class` pattern; net8 needs a narrow suppression).
3. **`MakeGenericType`/`MakeGenericMethod` only over closed sets** that are statically visible or class-constrained (the analyzer proves the `where T : class` pattern).
4. **Suppression policy**: `[UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = ...)]` on the smallest member — the ID is what ILC matches; the justification states the runtime invariant. Same no-`#pragma` rule as trimming.
5. **Verify under real ILC**: `tests/IgniteUI.Blazor.Lite.AotSmoke` (see its README) — CI publishes and runs it; locally `dotnet run -p:SimulateNoDynamicCode=true` covers the interpreter paths without the native toolchain.

## Maintaining trim compatibility (contributors)

The library must stay trim-clean. Every trim-analysis diagnostic builds as an error (`dotnet_analyzer_diagnostic.category-Trimming.severity = error` in the repo `.editorconfig`; category bulk-config covers future IL2xxx codes, inert where the analyzer is off). The analyzer cannot validate suppression justifications or retention-based mechanisms like `[IgbModule<TSelf>]` — `tests/IgniteUI.Blazor.Lite.PublishSmoke` is the authoritative check for those, automated as the `TrimmedPublish`-category browser facts in `IgniteUI.Blazor.Lite.IntegrationTests` (net10.0, runs in CI); its README has the manual checklist covering the other TFMs.
The library must stay trim-clean. Every trim-analysis diagnostic builds as an error (`dotnet_analyzer_diagnostic.category-Trimming.severity = error` in the repo `.editorconfig`; category bulk-config covers future IL2xxx codes, inert where the analyzer is off). The analyzer cannot validate suppression justifications or retention-based mechanisms like `[IgbModule<TSelf>]` — `tests/IgniteUI.Blazor.Lite.PublishSmoke` is the authoritative check for those, automated as the `TrimmedPublish`-category browser facts in `IgniteUI.Blazor.Lite.IntegrationTests` (net10.0 and net11.0, runs in CI); its README has the manual checklist.

When the analyzer flags new code, follow the standard playbook — avoid reflection and dynamic code where possible, otherwise annotate or fix the root cause, and suppress only as a last resort: see [preparing libraries for trimming: recommendations](https://learn.microsoft.com/dotnet/core/deploying/trimming/prepare-libraries-for-trimming#recommendations) and [resolving trim warnings](https://learn.microsoft.com/dotnet/core/deploying/trimming/fixing-warnings). Repo-specific rules on top:

Expand Down
Loading
Loading