By default when you add a web.config file to an ASP.NET Core application, the config file is transformed with the correct processPath and arguments.
This can be quite annoying especially if you want to apply some web config transformation magic.
Inside the documentation, I found that you can prevent the Web SDK from transforming the web.config file by setting the <IsTransformWebConfigDisabled> property in the project file:
This disabled the web config transformation behavior but didn’t solve the problem that Visual Studio updated the web.config file.
A colleague sent me another (undocumented?) flag <ANCMPreConfiguredForIIS> :
Remark: This setting only works when you are running in IIS InProcess.