-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Open
Labels
arch-wasmWebAssembly architectureWebAssembly architecturearea-Infrastructure-coreclros-browserBrowser variant of arch-wasmBrowser variant of arch-wasm
Milestone
Description
Reproduction:
Run Wasm.Build.Tests.AppSettingsTests (currently disabled in eng/testing/scenarios/BuildWasmAppsJobsListCLR.txt)
Error:
Collection: ["'/appsettings.json' exists 'False'", "'/appsettings.Development.json' exists 'False'", "'/appsettings.Production.json' exists 'False'"] Stack Trace: C:\Users\itomkowicz\repros\runtime2\src\mono\wasm\Wasm.Build.Tests\AppSettingsTests.cs(74,0): at Wasm.Build.Tests.AppSettingsTests.LoadAppSettingsBasedOnApplicationEnvironment(Boolean publish, String msBuildApplicationEnvironment, String queryApplicationEnvironment, String expectedApplicationEnvironment) at System.Runtime.CompilerServices.AsyncHelpers.RuntimeAsyncTask`1.DispatchContinuations()
Fix Suggestions:
CoreCLR WASM does not currently bundle appsettings.json or other configuration files by default, unlike Mono WASM. To fix, update the SDK/runtime pack or build logic to include appsettings.json in the published/bundled output for CoreCLR WASM apps.
Reference: See Mono WASM behavior for expected bundling logic.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
arch-wasmWebAssembly architectureWebAssembly architecturearea-Infrastructure-coreclros-browserBrowser variant of arch-wasmBrowser variant of arch-wasm
Type
Projects
Status
No status