-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[wasi] Bundle runtimeconfig in the single file bundle
#95377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
179a7c4
4c0a041
b89f55d
67745cb
e26cde3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -162,7 +162,8 @@ | |
| <RunCommand Condition="'$(RunCommand)' == ''">dotnet</RunCommand> | ||
|
|
||
| <_RuntimeConfigJsonPath>$([MSBuild]::NormalizePath($(_AppBundleDirForRunCommand), '$(AssemblyName).runtimeconfig.json'))</_RuntimeConfigJsonPath> | ||
| <RunArguments Condition="'$(RunArguments)' == ''">exec "$([MSBuild]::NormalizePath($(WasmAppHostDir), 'WasmAppHost.dll'))" --runtime-config "$(_RuntimeConfigJsonPath)" $(WasmHostArguments)</RunArguments> | ||
| <RunArguments Condition="'$(RunArguments)' == '' and '$(WasmSingleFileBundle)' != 'true'">exec "$([MSBuild]::NormalizePath($(WasmAppHostDir), 'WasmAppHost.dll'))" --runtime-config "$(_RuntimeConfigJsonPath)" $(WasmHostArguments)</RunArguments> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: I would prefer concatenating the arguments one by one and having a condition on the dir one rather than duplicating the whole line
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's simple enough right now, so I'll keep it as-is. But I wanted to take the same approach as you suggested, but it would make a little more complicated, tracking to make sure that we don't add the extra argument when |
||
| <RunArguments Condition="'$(RunArguments)' == '' and '$(WasmSingleFileBundle)' == 'true'">exec "$([MSBuild]::NormalizePath($(WasmAppHostDir), 'WasmAppHost.dll'))" $(WasmHostArguments)</RunArguments> | ||
| <RunWorkingDirectory Condition="'$(RunWorkingDirectory)' == ''">$(_AppBundleDirForRunCommand)</RunWorkingDirectory> | ||
| </PropertyGroup> | ||
|
|
||
|
|
@@ -334,7 +335,7 @@ | |
| </RuntimeConfigParserTask> | ||
|
|
||
| <ItemGroup> | ||
| <WasmFilesToIncludeInFileSystem Include="$(_ParsedRuntimeConfigFilePath)" /> | ||
| <WasmFilesToIncludeInFileSystem Condition="'$(WasmSingleFileBundle)' != 'true'" Include="$(_ParsedRuntimeConfigFilePath)" /> | ||
| </ItemGroup> | ||
| </Target> | ||
|
|
||
|
|
@@ -352,7 +353,6 @@ | |
| <ItemGroup Condition="'$(WasmBuildNative)' != 'true'"> | ||
| <!-- Add the default ones when we don't compile one --> | ||
| <WasmNativeAsset Include="$(MicrosoftNetCoreAppRuntimePackRidNativeDir)dotnet.wasm"/> | ||
| <WasmFilesToIncludeInFileSystem Include="@(WasmNativeAsset)" Condition="'%(WasmNativeAsset.FileName)%(WasmNativeAsset.Extension)' == 'dotnet.js.symbols'" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup Condition="'$(InvariantGlobalization)' != 'true' and '$(WasmSingleFileBundle)' != 'true'"> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.