Octopus Deploy Not Picking up non-web config transform file

This is related to http://help.octopusdeploy.com/discussions/problems/220-support-for-config-transforms-in-non-webconfig-files ; however, that discussion was closed, so i had to create a new one. I’m attempting to deploy an nservicebus application, so my files are not .exe.config, but .dll.config. And as far as I can tell it’s not picking up the <Environment>.config convention.

Environment Name: Dev
File: Service.Endpoint.dll.config
File: Service.Endpoint.dll.Dev.config

Both remain in the deployment package after installation, and I can see the step where octopus is looking for them, but nothing else prints out.

2012-07-19 12:37:34 DEBUG Return code of PowerShell script: 0
2012-07-19 12:37:34 INFO Looking for any configuration transformation files
2012-07-19 12:37:34 INFO Looking for appSettings and connectionStrings in any .config files
2012-07-19 12:37:34 DEBUG Scanning configuration file: C:\Octopus\Applications\Dev\Service\1.0.0.45\NServiceBus.Host.exe…

Hi Matthew,

I just tried this and it works for me using the names you gave.

Are there any other ‘scanning configuration file:’ lines?

Paul

Here’s the entire chunk (right after PreDeploy.ps1 is run but before Deploy.ps1 is run)

2012-07-19 12:37:34 DEBUG Return code of PowerShell script: 0
2012-07-19 12:37:34 INFO Looking for any configuration transformation files
2012-07-19 12:37:34 INFO Looking for appSettings and connectionStrings in any .config files
2012-07-19 12:37:34 DEBUG Scanning configuration file: C:\Octopus\Applications\Dev\Service\1.0.0.45\NServiceBus.Host.exe.config
2012-07-19 12:37:34 DEBUG Scanning configuration file: C:\Octopus\Applications\Dev\Service\1.0.0.45\Service.Endpoint.dll.Dev.config
2012-07-19 12:37:34 DEBUG Scanning configuration file: C:\Octopus\Applications\Dev\Service\1.0.0.45\Services.Endpoint.dll.config
2012-07-19 12:37:34 DEBUG The package has been installed to: C:\Octopus\Applications\Dev\Service\1.0.0.45
2012-07-19 12:37:34 DEBUG If you would like the package to be installed to an alternative location, please specify the variable 'OctopusPackageDirectoryPath’
2012-07-19 12:37:34 DEBUG Looking for PowerShell scripts named Deploy.ps1
2012-07-19 12:37:34 INFO Calling PowerShell script: 'C:\Octopus\Applications\Dev\Service\1.0.0.45\Deploy.ps1’
2012-07-19 12:37:39 DEBUG Script ‘C:\Octopus\Applications\Dev\Service\1.0.0.45\Deploy.ps1’ completed.

Thanks Matthew,

I think this is the culprit:

C:\..\Service.Endpoint.dll.Dev.config
C:\..\Services.Endpoint.dll.config

Renaming the first file to Services.Endpoint.dll.Dev.config should fix the issue.

Paul

Oh man. (smacks head). I think this is a symptom of staring at configurations for too many hours straight :wink:
Thanks!