Skip to content

Commit 28e0190

Browse files
authored
PublishIISAssets must be set to publish custom web.config (#20243)
1 parent 31a26c0 commit 28e0190

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

aspnetcore/blazor/host-and-deploy/webassembly.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,13 @@ When a Blazor project is published, a `web.config` file is created with the foll
434434

435435
#### Use a custom web.config
436436

437-
To use a custom `web.config` file, place the custom `web.config` file at the root of the project folder and publish the project.
437+
To use a custom `web.config` file, place the custom `web.config` file at the root of the project folder. Configure the project to publish IIS-specific assets using `PublishIISAssets` in the app's project file and publish the project:
438+
439+
```xml
440+
<PropertyGroup>
441+
<PublishIISAssets>true</PublishIISAssets>
442+
</PropertyGroup>
443+
```
438444

439445
#### Install the URL Rewrite Module
440446

0 commit comments

Comments
 (0)