Skip to content

[wasm] The way of getting the path of runtimeconfig.json file is not always reliable #93692

@fanyang-mono

Description

@fanyang-mono

In wasm build process, the path of runtimeconfig.json file was generated based the location of the main app assembly. This would work with the assumption that runtimeconfig.json file lived in the same folder as the main app assembly file. This assumption was broken when enabling IL trim by default for wasm apps in my PR (#90436). When the main app assembly file gets trimmed, the newly generated trimmed assembly lives in a separated directory than the runtimeconfig.json file. We need a more robust way of finding runtimeconfig.json file.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions