Skip to content

[browser][CoreCLR] more Wasm.Build.Tests#128762

Draft
pavelsavara wants to merge 4 commits into
dotnet:mainfrom
pavelsavara:browser_appsettings
Draft

[browser][CoreCLR] more Wasm.Build.Tests#128762
pavelsavara wants to merge 4 commits into
dotnet:mainfrom
pavelsavara:browser_appsettings

Conversation

@pavelsavara
Copy link
Copy Markdown
Member

  • applicationEnvironment
  • LoadLazyAssemblyBeforeItIsNeeded
  • AppSettingsTests
  • appsettings

- applicationEnvironment
- LoadLazyAssemblyBeforeItIsNeeded
- AppSettingsTests
@pavelsavara pavelsavara added this to the 11.0.0 milestone May 29, 2026
@pavelsavara pavelsavara self-assigned this May 29, 2026
Copilot AI review requested due to automatic review settings May 29, 2026 12:12
@pavelsavara pavelsavara added arch-wasm WebAssembly architecture area-Host os-browser Browser variant of arch-wasm labels May 29, 2026
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
See info in area-owners.md if you want to be subscribed.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR broadens CoreCLR browser/Wasm test coverage by enabling appsettings-related build tests and a lazy-loading test, while adding the loader support needed for appsettings files and application environment selection.

Changes:

  • Adds applicationEnvironment merge/default handling to the shared JavaScript loader config.
  • Adds CoreCLR loader logic to place matching appsettings*.json files into the VFS.
  • Enables additional Wasm.Build.Tests scenarios for CoreCLR.

Reviewed changes

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

File Description
src/native/libs/Common/JavaScript/loader/run.ts Adds appsettings files to VFS downloads based on the configured application environment.
src/native/libs/Common/JavaScript/loader/config.ts Carries applicationEnvironment through config merging and defaults it to Production.
src/mono/wasm/Wasm.Build.Tests/LazyLoadingTests.cs Allows the lazy-loading theory to run for CoreCLR as well as Mono.
eng/testing/scenarios/BuildWasmAppsJobsListCoreCLR.txt Adds appsettings test classes to the CoreCLR Wasm build-test scenario list.

Copilot AI review requested due to automatic review settings May 29, 2026 17:23
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Comment on lines +129 to +130
// Add appsettings files to VFS for download
if (loaderConfig.appsettings) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arch-wasm WebAssembly architecture area-Host os-browser Browser variant of arch-wasm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants