Commit fcedb50
authored
[mono] Don't call Assembly.CodeBase directly in RuntimeAssembly.GetName (#54895)
* [mono] Don't call Assembly.CodeBase directly in RuntimeAssembly.GetName
It's marked as not available in single file apps. Call the underlying get_code_base icall.
Fixes #54835
* [icall] Use MonoImage:filename for RuntimeAssembly.get_code_base
For bundled asssemblies in single file scenarios, RuntimeAssembly.CodeBase will be null, matching CoreCLR.
* disable codebase test on wasm1 parent 121bcd1 commit fcedb50
File tree
3 files changed
+12
-8
lines changed- src
- libraries/System.Reflection/tests
- mono
- System.Private.CoreLib/src/System/Reflection
- mono/metadata
3 files changed
+12
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
513 | | - | |
| 513 | + | |
514 | 514 | | |
515 | 515 | | |
516 | 516 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
257 | | - | |
258 | | - | |
| 256 | + | |
259 | 257 | | |
260 | 258 | | |
261 | 259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4462 | 4462 | | |
4463 | 4463 | | |
4464 | 4464 | | |
4465 | | - | |
4466 | 4465 | | |
4467 | | - | |
4468 | | - | |
| 4466 | + | |
| 4467 | + | |
| 4468 | + | |
| 4469 | + | |
| 4470 | + | |
| 4471 | + | |
| 4472 | + | |
| 4473 | + | |
| 4474 | + | |
4469 | 4475 | | |
4470 | | - | |
| 4476 | + | |
4471 | 4477 | | |
4472 | 4478 | | |
4473 | 4479 | | |
| |||
0 commit comments