Skip to content

Commit 3450b29

Browse files
committed
Updates
1 parent e13d80f commit 3450b29

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

aspnetcore/blazor/project-structure.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ In a Blazor Server app, the Blazor script is located in the `Pages/_Host.cshtml`
608608

609609
:::moniker-end
610610

611-
For a Blazor Web App or a Blazor Server app, the project must contain at least one Razor component file (`.razor`) in order to automatically include the Blazor script when the app is published. If the project doesn't contain at least one Razor component, set the `RequiresAspNetWebAssets` MSBuild property `true` in the app's project file to include the Blazor script:
611+
For a Blazor Web App or a Blazor Server app, the project must contain at least one Razor component file (`.razor`) in order to automatically include the Blazor script when the app is published. If the project doesn't contain at least one Razor component, set the `RequiresAspNetWebAssets` MSBuild property to `true` in the app's project file to include the Blazor script:
612612

613613
```xml
614614
<RequiresAspNetWebAssets>true</RequiresAspNetWebAssets>
@@ -622,6 +622,8 @@ In a Blazor WebAssembly app, the Blazor script content is located in the `wwwroo
622622
<script src="_framework/blazor.webassembly#[.{fingerprint}].js"></script>
623623
```
624624

625+
When the app is published, the `{fingerprint}` placeholder is automatically replaced with a unique hash for cache busting.
626+
625627
:::moniker-end
626628

627629
:::moniker range="< aspnetcore-10.0"

0 commit comments

Comments
 (0)