1
votes

I have a web project is VS2013 that contains a publish profile called Test. I have web.config and a web.test.config along with log4net.config and log4net.test.config transform.

The web.config is transformed when the project is published (using VS2013 'Publish to File System') but the log4net config file isn't.

Do I need to adjust my Project file to ensure the transforms happen for non-web.config files during publish?

1

1 Answers

1
votes

Make sure you have a build configuration called "test". And when you build, this needs to be the active build configuration. I'm not sure but it might be case-sensitive so keep an eye out for that part.

enter image description here

Your publish profile also needs to refer to this build configuration.

enter image description here

You can also open up your .csproj file and ensure that SlowCheetah Targets are properly setup (file paths mainly).