NLog.config transforms are not working

I have the following in my processes:

NLog.#{Octopus.Environment.Name}.config => NLog.config

And I have a NLog.Development.config and NLog.Release.config

In the Development and Release files I have the following so it should replace the entire contents of the file:

I build it and publish it our Development environment and nothing has changed. On the remote server, I can see that it copied over the NLog.Development.config and NLog.Releasde.config files.

Anything I’m doing wrong?

Hi Andrew,

Thank you for getting in touch! Would you mind following the below steps and send me your full deployment log?

1) Add these 2 variables to your project http://docs.octopusdeploy.com/display/OD/Debug+problems+with+Octopus+variables

2) Create a new release (so the new variables take effect) and deploy it. If possible skip as many steps as you can and only leave step we are troubleshooting in order to avoid the noise in the log.

3) Send us the raw log of that deployment http://docs.octopusdeploy.com/display/OD/Get+the+raw+output+from+a+task

And would you also send me a screenshot of the content of your NuGet package so we can see where the config files are located?

That should hopefully help us get to the bottom of your issue!

Kenny

Notice:

This issue has been closed due to inactivity. If you encounter the same or a similar issue and require help, please open a new discussion (if we asked for logs or extra details in this thread, consider including them in the new thread). If you are the creator of this thread and believe it should not be closed let us know via our support email.