Skip to content

[Blazor] Remove build-time disabling of preloading in tests - #61667

Merged
maraf merged 10 commits into
dotnet:mainfrom
maraf:BlazorTestPreload
Sep 4, 2026
Merged

maraf merged 10 commits into
dotnet:mainfrom
maraf:BlazorTestPreload

Conversation

@maraf

@maraf maraf commented Apr 24, 2025 •

Copy link
Copy Markdown
Member

Preloading is enabled by placing <ResourcePreloader /> component in the application. We don't need to disable in the tests explicitly during build.

@maraf maraf added area-blazor Includes: Blazor, Razor Components feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly labels Apr 24, 2025
@maraf maraf self-assigned this Apr 24, 2025
@maraf maraf changed the title [Blazor] Enable preloading in tests [Blazor] Remove build-time disabling of preloading in tests Sep 26, 2025
@maraf
maraf marked this pull request as ready for review September 26, 2025 08:53
@maraf
maraf requested a review from a team as a code owner September 26, 2025 08:53
Copilot AI review requested due to automatic review settings September 26, 2025 08:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Removes build-time configuration that explicitly disabled Blazor WebAssembly preloading features in test environments. This change aligns with the new approach where preloading is controlled by adding the <ResourcePreloader /> component to the application rather than being disabled globally at build time.

  • Removes WasmPreloadAssets and BlazorCacheBootResources properties set to false
  • Simplifies test configuration by removing unnecessary build-time overrides
  • Maintains existing behavior through component-based control

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/Components/test/testassets/Directory.Build.props Removes PropertyGroup blocks that disabled WASM preloading and boot resource caching for test assets
src/Components/benchmarkapps/Wasm.Performance/TestApp/Wasm.Performance.TestApp.csproj Removes BlazorCacheBootResources=false setting from performance test app
src/Components/WebAssembly/Directory.Build.props Removes PropertyGroup blocks that disabled preloading features for WebAssembly components

@maraf
maraf enabled auto-merge (squash) September 26, 2025 08:53
@dotnet-policy-service dotnet-policy-service Bot added the pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun label Oct 3, 2025
@maraf maraf removed the pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun label Apr 22, 2026
@ilonatommy ilonatommy added this to the 11.0-rc1 milestone Aug 4, 2026
@Youssef1313 Youssef1313 removed this from the 11.0-rc1 milestone Sep 1, 2026
@Youssef1313

Copy link
Copy Markdown
Member

@ilonatommy @maraf This has missed RC1. Do you want to target release/11.0 and get it in RC2?

# Conflicts:
#	src/Components/benchmarkapps/Wasm.Performance/TestApp/Wasm.Performance.TestApp.csproj
#	src/Components/test/testassets/Directory.Build.props
The merge from main re-introduced WasmPreloadAssets=false and
BlazorCacheBootResources=false in the Components test assets and the
Wasm.Performance test app. Preloading is opted into by placing
<ResourcePreloader /> in the application, so these build-time overrides
are not needed.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 984a3d1e-740f-4794-96aa-e5a1984e3a15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants