App.config transformation for appharbor background workers

只谈情不闲聊 提交于 2019-12-08 06:35:45

问题


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


回答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.




回答2:


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.



来源:https://stackoverflow.com/questions/10078835/app-config-transformation-for-appharbor-background-workers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!