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:
Hope it can help someone else…