How do I do Web.config Transformations with Visual Studio Website Projects?

后端 未结 6 985
旧时难觅i
旧时难觅i 2020-12-05 00:51

It doesn\'t seem to be possible to change the Build Configuration of Visual Studio 2010 Website Projects (as opposed to Visual Studio Web Applications), and changing the Bui

6条回答
  •  一向
    一向 (楼主)
    2020-12-05 01:02

    Create a publish profile in VS 2017 and then right click on the .pubxml profile in App_Data\PublishProfiles and select Add Config Transform.

    See https://social.msdn.microsoft.com/Forums/vstudio/en-US/31f41991-abb2-41de-ad0b-c1379cc7c806/vs-2013-express-for-web-webconfig-transforms?forum=visualstudiogeneral&prof=required

提交回复
热议问题