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

前端 未结 7 1275
我在风中等你
我在风中等你 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:51

    Based off Alec's answer, here is a similar element that you can use along with the transformations and still get their full benefit:

      
        
          false
          $(AssemblyName).dll.config
        
      
    

    This way, you can use the SlowCheetah transforms or the built-in ones to transform your .config file, and then go into your Visual Studio Deployment Project (or other) and include the Content from the affected project in your Add -> Project Output... page easily, with minimal changes.

提交回复
热议问题