1

I would like to use app.config transformation as it is done for web.config on AppHarbor background workers. I tried the solution proposed in a previous question but it doesn't seem to work. Is this possible?

Thanks

Community
  • 1
  • 1
nakhli
  • 4,009
  • 5
  • 38
  • 61

2 Answers2

1

AppHarbor actually already applies transforms before backgroundworkers are deployed, but the problem is that the file names no longer match up. So if we're transforming App.config, we look for a transformation called App.Release.config. After the build however, the file name will generally be ExecutableName.exe.config and there's no matching transform for that.

We're thinking of ways to work around this problem. In the mean time, you can rename your transformation to match the runtime configuration file name.

friism
  • 19,068
  • 5
  • 80
  • 116
1

You can use SlowCheetah (a VS extension) to transform app.config in the same way that web.config. Let me know if that doesn't work for you.

Sayed Ibrahim Hashimi
  • 43,864
  • 17
  • 144
  • 178
  • thank you for the link. My problem is that I don't build my app locally using vstudio. My app is built just before deployment, in the cloud, using msbuild. I don't have much control on the build process. – nakhli Apr 29 '12 at 11:12