Support for config transforms in non-web.config files

Hi,

We’re running Octopus Version 0.9.620.4. I got the process going for installing a windows service of the example (made some changes for assuming it’s a windows service and figuring out the install path) and am trying to get the config transforms to work.

I’ve tried packaging transform files as App.Dev.config and MyService.Dev.config but neither are getting picked up. Was this functionality removed or do I need to have a different convention for applications assuming my exe is MyService.exe with a MyService.exe.config file?

Deploy.ps1 (1 KB)

Hi Dan,

You’ll need to name the file like this:

  • MyService.exe.release.config
  • MyService.exe.Dev.config

That’s because .NET will expect the file to be “MyService.exe.config”, and Octopus just replaces the .config extension with .Dev.Config.

Hope that helps and sorry for the late reply,

Paul