Open radical opened 1 year ago
Tagging subscribers to 'arch-wasm': @lewing See info in area-owners.md if you want to be subscribed.
Author: | radical |
---|---|
Assignees: | - |
Labels: | `arch-wasm`, `area-Build-mono` |
Milestone: | 7.0.0 |
we could have simpler await dotnet.run()
instead of await runMainAndExit
we could have simpler
await dotnet.run()
instead ofawait runMainAndExit
Why do we have dotnet.run
what implicitly reads main assembly and arguments, but runMainAndExit
requires to pass them explicitly?
Using dotnet.run()
after const runtime = dotnet.create()
seems like "a break in code flow".
Why do we have
dotnet.run
what implicitly reads main assembly and arguments, butrunMainAndExit
requires to pass them explicitly?
Because it's a lower level API which is not part of the builder pattern.
Using
dotnet.run()
afterconst runtime = dotnet.create()
seems like "a break in code flow".
That's OK :)
I believe this was fixed by https://github.com/dotnet/runtime/pull/76182 and https://github.com/dotnet/runtime/pull/76373 Is that right @radical @maraf ?
Partially. It passes command line args for the console template.
I updated it for Net8 then
@radical is this resolved?
I would like to see it resolved together with https://github.com/dotnet/runtime/issues/88760
cc @richlander
Tagging subscribers to this area: @vitek-karas, @agocke See info in area-owners.md if you want to be subscribed.
Author: | radical |
---|---|
Assignees: | - |
Labels: | `arch-wasm`, `area-HostModel`, `area-Build-mono` |
Milestone: | 9.0.0 |
What area owns template argument parsing and where should this be redirected?
I think this is all WasmAppHost related
I think this is all WasmAppHost related
I think the app host doesn't get all the information it needs, but I hope I'm wrong
If we print the command line args:
.. and run:
The command line arguments
x y z
were ignored, and instead we gotdotnet,is,great
. And that's because themain.mjs
has:This doesn't get caught by Wasm.Build.Tests because the tests are explicitly patching the generated code https://github.com/dotnet/runtime/blob/4bd3ee5c6648c8435df13cd9d2185b55fd022767/src/tests/BuildWasmApps/Wasm.Build.Tests/WasmTemplateTests.cs#L48-L58
And the same is done for the browser too.
We should instead:
cc @pavelsavara