Set web.config transform in Asp.NET Core

后端 未结 8 1677
遥遥无期
遥遥无期 2021-01-04 10:54

I\'ve just came across with problem of web.config transformation in asp.net core.

There are two files: base web.config and web.prod-zone-a.config. My aim is to use t

8条回答
  •  失恋的感觉
    2021-01-04 11:47

    may be i don't clear question. For mine case web.config override all settings in web.Release.config file.

    Fix for me, i just add reference for transformation xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform" to configuration file.

    so, .config file should start:

    
    
    

    After some time, the best solutions is using dotnet-transform-xdt tool

提交回复
热议问题