Set web.config transform in Asp.NET Core

后端 未结 8 1694
遥遥无期
遥遥无期 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:46

    Following on from user1820686's answer above:

    The github page misses out some of the steps required to add this for MSBuild/csproj tooling:

    You need to open a command prompt in your project directory and run

    dotnet add myProj.csproj package Microsoft.DotNet.Xdt.Tools --version 2.0.0
    

    Then you need to open the csproj file and add

    
        
        
        
    
    

提交回复
热议问题