You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Goal of this PR is to prepare everything needed to clean-up startup on Blazor side to the final shape.
Changes needs to be backward compatible with Blazor.
GlobalizationMode & ICUDataMode merged
Resulting type is string based enum
Contains separate values for different ICU modes ("all", "sharded", "custom" instead of "icu")
Value "auto" has been removed
Integrate library initializers
Allows for nuget packages to hook into application startup
Nuget package can contains files in name pattern *.lib.module.js in wwwroot
Such es6 modules are imported during startup
They can export various callbacks
On runtime side we call onRuntimeConfigLoaded(config: MonoConfig) and onRuntimeReady(api: RuntimeAPI)
On blazor side, beforeStart and afterStarted are called
Library initializers can be downloaded either right after config is loaded or before runtime ready promise resolved. By default boot json generator checks for content to see if library initializer must be downloaded earlier. This behavior can be overriden by putting library initializer in @(WasmLibraryInitializerOnRuntimeConfigLoaded) or @(WasmLibraryInitializerOnRuntimeReady)
Library initializers can invoked using invokeLibraryInitializers
New set of Wasm.Build.Tests using prepared wasm app
The purpose is to have a coded application and test behavior/interaction with it using playwright
Test lazy assembly loading
Test loading satellite assembly
Test library initializer
Test appsettings based on app environment
Run all Wasm.Build.Tests in specified namespace using XunitNamespace msbuild property
Set debug level in Wasm SDK apps
Use WasmDebugLevel to specify debug level (the same as WasmApp.targets)
Default values (when WasmDebugLevel is not set) for .NET >= 8.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal of this PR is to prepare everything needed to clean-up startup on Blazor side to the final shape.
Changes needs to be backward compatible with Blazor.
GlobalizationMode&ICUDataModemerged*.lib.module.jsin wwwrootonRuntimeConfigLoaded(config: MonoConfig)andonRuntimeReady(api: RuntimeAPI)beforeStartandafterStartedare called@(WasmLibraryInitializerOnRuntimeConfigLoaded)or@(WasmLibraryInitializerOnRuntimeReady)invokeLibraryInitializersXunitNamespacemsbuild propertyWasmDebugLevelto specify debug level (the same asWasmApp.targets)WasmDebugLevelis not set) for .NET >= 8.0-1000Finalize
Contributes to #70762
Contributes to #87178