You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.
Issue Details
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.
The assumption is correct because runtimeconfig.json files are always next to the assembly. But in the ILStrip PR case, because the assembly when stripped moves to a different location, the old path is no longer reachable. Thus the old path needs to be retained, and used.
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 thatruntimeconfig.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 theruntimeconfig.json
file. We need a more robust way of findingruntimeconfig.json
file.The text was updated successfully, but these errors were encountered: