-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[browser] Migrate more Blazor features, prepare JavaScript API for Blazor cleanup #87959
Conversation
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsTODO
|
# Conflicts: # src/mono/wasm/runtime/loader/blazor/_Integration.ts # src/mono/wasm/runtime/loader/config.ts # src/mono/wasm/runtime/types/internal.ts
- Integrate them in a single test app - Create base class for such tests
Default values (when WasmDebugLevel is not set) - Build (debug) => debugBuild=true & debugLevel=-1 => -1 - Build (release) => debugBuild=true & debugLevel=0 => 0 - Publish (debug) => debugBuild=false & debugLevel=-1 => 0 - Publish (release) => debugBuild=false & debugLevel=0 => 0
# Conflicts: # src/mono/wasm/runtime/loader/blazor/_Integration.ts
src/tasks/Microsoft.NET.Sdk.WebAssembly.Pack.Tasks/GenerateWasmBootJson.cs
Outdated
Show resolved
Hide resolved
src/tasks/Microsoft.NET.Sdk.WebAssembly.Pack.Tasks/GenerateWasmBootJson.cs
Show resolved
Hide resolved
src/tasks/Microsoft.NET.Sdk.WebAssembly.Pack.Tasks/GenerateWasmBootJson.cs
Outdated
Show resolved
Hide resolved
public ITaskItem[] LibraryInitializerOnRuntimeConfigLoaded { get; set; } | ||
|
||
public ITaskItem[] LibraryInitializerOnRuntimeReady { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are these? Add Paths
to the name since these seem to be file paths.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, these are file paths. Resources and Configs also don't have paths suffix.
src/tasks/Microsoft.NET.Sdk.WebAssembly.Pack.Tasks/GenerateWasmBootJson.cs
Show resolved
Hide resolved
src/tasks/Microsoft.NET.Sdk.WebAssembly.Pack.Tasks/GenerateWasmBootJson.cs
Outdated
Show resolved
Hide resolved
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
Failures are unrelated. |
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*.lib.module.js
in wwwrootonRuntimeConfigLoaded(config: MonoConfig)
andonRuntimeReady(api: RuntimeAPI)
beforeStart
andafterStarted
are called@(WasmLibraryInitializerOnRuntimeConfigLoaded)
or@(WasmLibraryInitializerOnRuntimeReady)
invokeLibraryInitializers
XunitNamespace
msbuild propertyWasmDebugLevel
to specify debug level (the same asWasmApp.targets
)WasmDebugLevel
is not set) for .NET >= 8.0-1
0
0
0
Finalize
Contributes to #70762
Contributes to #87178