ASP.NET Web.config transformation won't work in installer

前端 未结 3 1610
耶瑟儿~
耶瑟儿~ 2021-02-15 00:22

I am working on an ASP.NET project in Visual Studio .NET 2010 and attempting to make an MSI installer using a Web Setup Project. I added the Primary output from the project (wh

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-15 01:20

    The answer ended up being located on another SO post which I missed when I was searching through before asking because it wasn't exactly what I wanted:

    MSBuild Script and VS2010 publish apply Web.config Transform

    A co-worker suggested using that to place the transformed Web.config in the project's bin directory and a Web Setup Project configured to grab the Web.config out of the bin directory and put it in the installer. This ended up being the most workable solution without installing any add-ons into Visual Studio.

提交回复
热议问题