How to replace a web.config setting with the current date while using webdeploy?

♀尐吖头ヾ 提交于 2019-12-05 05:32:26

I think you're going to need to use a customer MSBuild task to apply the change.

My wife blogged about adding custom tasks to the build process (as she understands these things better than I).

You might find some useful information on her blog (there are a few related posts).

Alternatively, maybe you could pick up the Last Modified date from a file in your deployment, rather than having it in Web.config?

You could post it with that setting blank, then in Application_Start, check to see if it's blank and populate it with the current date if it is.

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