Can I force the installer project to use the .config file from the built solution instead of the original one?

前端 未结 7 1254
我在风中等你
我在风中等你 2021-02-01 09:41

I am using the solution to this question in order to apply configuration changes to App.config in a Winforms project. I also have an installer project for the proj

7条回答
  •  隐瞒了意图╮
    2021-02-01 09:56

    Another solution I've found is not to use the transformations but just have a separate config file, e.g. app.Release.config. Then add this line to your csproj file.

      
        App.Release.config
      
    

    This will force the deployment project to use the correct config file when packaging.

提交回复
热议问题