Commit 52e2158
Implement CoreCLR browser-wasm native build targets
Replace placeholder 'not implemented' targets in BrowserWasmApp.CoreCLR.targets
with a working implementation that copies pre-built native files from the runtime
pack. Unlike Mono which re-links dotnet.native.wasm per-app via emcc, CoreCLR
pre-links it once during the runtime build (corehost.proj).
Changes:
- Import WasmApp.Common.props/targets for shared WasmBuildApp chain
- Set WasmBuildNative=false to skip per-app emcc compile/link
- Override _SetupToolchain to mark emscripten as unavailable (no src/ dir in
CoreCLR runtime pack)
- Add _CoreCLRBrowserCopyNativeAssets target to copy dotnet.native.wasm/js from
runtime pack and register as WasmNativeAsset items for SDK bundling
- Add DotNetCoreWeb ProjectCapability for VS debugging support
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 23bc7e3 commit 52e2158
File tree
2 files changed
+57
-7
lines changed- src/mono/browser/build
2 files changed
+57
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
5 | 28 | | |
6 | | - | |
7 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
8 | 54 | | |
9 | | - | |
| 55 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| |||
0 commit comments