-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[Wasm] feat: Make boot json file configurable #108281
base: main
Are you sure you want to change the base?
Conversation
@@ -19,6 +19,8 @@ Copyright (c) .NET Foundation. All rights reserved. | |||
<RunCommand Condition="'$(RunCommand)' == ''">dotnet</RunCommand> | |||
|
|||
<WasmAppHostDir>$([MSBuild]::NormalizeDirectory($(MSBuildThisFileDirectory), '..', 'WasmAppHost'))</WasmAppHostDir> | |||
<WasmBuildBootJsonFileName Condition="'$(WasmBuildBootJsonFileName)'==''">blazor.boot.json</WasmBuildBootJsonFileName> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer WasmBootConfigFileName
property name
@@ -19,6 +19,8 @@ Copyright (c) .NET Foundation. All rights reserved. | |||
<RunCommand Condition="'$(RunCommand)' == ''">dotnet</RunCommand> | |||
|
|||
<WasmAppHostDir>$([MSBuild]::NormalizeDirectory($(MSBuildThisFileDirectory), '..', 'WasmAppHost'))</WasmAppHostDir> | |||
<WasmBuildBootJsonFileName Condition="'$(WasmBuildBootJsonFileName)'==''">blazor.boot.json</WasmBuildBootJsonFileName> | |||
<WasmBuildPublishBootJsonFileName Condition="'$(WasmBuildPublishBootJsonFileName)'==''">blazor.publish.boot.json</WasmBuildPublishBootJsonFileName> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this property is used only for intermediate file, we can compute the file name for publish based on WasmBootConfigFileName
and skip the need property, or at least for "public property". Something like publish.$(WasmBootConfigFileName)
should be enough
@@ -589,8 +591,8 @@ Copyright (c) .NET Foundation. All rights reserved. | |||
<Target Name="_AddPublishWasmBootJsonToStaticWebAssets" DependsOnTargets="GeneratePublishWasmBootJson"> | |||
<ItemGroup> | |||
<_PublishWasmBootJson | |||
Include="$(IntermediateOutputPath)blazor.publish.boot.json" | |||
RelativePath="_framework/blazor.boot.json" /> | |||
Include="$(IntermediateOutputPath)$(WasmBuildPublishBootJsonFileName)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are two other places where blazor.publish.boot.json
is used
Tagging subscribers to 'arch-wasm': @lewing |
This change makes the
blazor.boot.json
file configurable from msbuild, usingWasmBuildBootJsonFileName
andWasmBuildPublishBootJsonFileName
.