AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

Call out disabling web.config transform

Open guardrex opened this issue 3 years ago • 0 comments

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.

guardrex avatar Sep 21 '22 20:09 guardrex