刷新服务引用更新app.config [英] Refreshing service references updates the app.config
问题描述
每当我修改我的WS和更新在Visual Studio中引用,VS覆盖我的app.config额外的不必要的信息。所以,当我开始我的客户端之后,我得到这个错误:
Every time I make changes to my WS and update the reference in Visual Studio, VS overwrites my app.config with additional unnecessary information. So when I start my client afterwards, I get this error:
这是错误被发现加工头
这是做了code发生器的变化为从每一个绑定删除这一行(请注意我用customBinding / httpsTransport):
The changes that the code generator made was to remove this line from every binding (note I'm using customBinding/httpsTransport):
<security authenticationMode="UserNameOverTransport" includeTimestamp="false">
<secureConversationBootstrap/>
</security>
然后我要关闭客户端,恢复在app.config更改并重新启动这是一个麻烦的客户端。
Then I have to close the client, revert the app.config changes and restart the client which is a hassle.
我会preFER如果在app.config将被单独留在家中。
I would prefer if the app.config would be left alone.
您遇到同样的问题,你有一个解决办法?
Are you experiencing the same problem and do you have a workaround?
推荐答案
终于实现了这个编程这解决了这个问题。
Ended up doing this programmatically which solved the problem.
这篇关于刷新服务引用更新app.config的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!