App.config中转型为背景appharbor工人 [英] App.config transformation for appharbor background workers

查看:213
本文介绍了App.config中转型为背景appharbor工人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想,因为它是对 AppHarbor 背景工人做的web.config中使用的app.config改造。我想在前面问题提出的解决方案,但它似乎并没有工作。这可能吗?

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?

感谢

推荐答案

AppHarbor其实已经应用于变换backgroundworkers部署之前,但问题是该文件名不再匹配。因此,如果我们正在改变App.config中,我们看一个名为App.Release.config转变。生成后然而,文件名一般会ExecutableName.exe.config并没有匹配的变换的。

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.

这篇关于App.config中转型为背景appharbor工人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆