在Azure云服务中部署应用程序后更改web.config中的变量

问题描述:

在Azure云服务中部署我的应用程序后,我想在我的web.config中自动更改变量的值.  有可能吗?如果可能的话,请告诉我方法.从上个星期开始,我就一直陷在这个问题中.           谢谢

I want to change the value of a variable automatically in my web.config after deployment of my app in Azure Cloud Service.  Is it possible anyhow? If it possible then please tell me the way. I have benn stuck in this problem from last one week.              Thanks

如何:转变 部署Web应用程序项目时的Web.config .

How to: Transform Web.config When Deploying a Web Application Project.

文件 变换和变量替换参考 .

File transforms and variable substitution reference.

- -------------------------------------------------- --------------------------------------
如果此答案有帮助,请单击标记为答案"或上投票".要提供有关您的论坛体验的其他反馈,请单击 span> .

------------------------------------------------------------------------------------------
If this answer was helpful, click "Mark as Answer" or "Up-Vote". To provide additional feedback on your forum experience, click here.