When deploying your ASP.NET Core application through Web Deploy, the web.config transformation available in your project will be executed. This is a handy feature that allows you to override your default configuration inside your web.config.
I had a situation where I didnāt want this transformation to happen. This IS possible but needs to be configured through an option that is really hard to find:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk.Web"> | |
<PropertyGroup> | |
<TargetFramework>net60</TargetFramework> | |
<IsWebConfigTransformDisabled>True</IsWebConfigTransformDisabled> | |
</PropertyGroup> | |
</Project> |
Hope it can help someone elseā¦