AspNetCore.Docs
AspNetCore.Docs copied to clipboard
Call out disabling web.config transform
The article makes reference in one or two spots to using a custom web.config, but it doesn't indicate disabling a transform of a custom file ...
<PropertyGroup>
<IsTransformWebConfigDisabled>true</IsTransformWebConfigDisabled>
</PropertyGroup>
--- OR --- because a copy target will just overwrite a file generated by the SDK with the dev's custom file ---
<Target Name="CopyWebConfig" AfterTargets="Publish">
<Copy SourceFiles="web.config" DestinationFolder="$(PublishDir)" />
</Target>
... which we need in this topic because we don't necessarily expect WASM devs to look much at the main IIS host and delpoy topics in the main doc set in the same way we expect Blazor Server devs to look.
As part of this work, assess how this topic indicates that the main content IIS coverage does apply to hosted WASM scenarios.
Cross-refs:
- https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/web-config?view=aspnetcore-6.0#webconfig-file-location
- https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/transform-webconfig?view=aspnetcore-6.0#prevent-webconfig-transformation
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: be59faf1-5a20-b7e9-19ff-06589023bb15
- Version Independent ID: 250e7458-3c1d-0117-261d-c03ac136f16a
- Content: Host and deploy ASP.NET Core Blazor WebAssembly
- Content Source: aspnetcore/blazor/host-and-deploy/webassembly.md
- Product: aspnet-core
- Technology: aspnetcore-hostdeploy
- GitHub Login: @guardrex
- Microsoft Alias: riande