Unable to Remove Web.Config Nodes using Transform

大兔子大兔子 提交于 2019-12-05 00:40:01
Sayed Ibrahim Hashimi

Hmm I just tried this here is my transform file.

<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">

  <system.webServer>
    <rewrite xdt:Transform="RemoveAll" />
  </system.webServer>

</configuration>

And here is the result:

FYI preview provided by SlowCheetah.

I also packaged the web project and verified that the web.config indeed did not have the rewrite node. One thing to try here is to delete your obj\ folder and try again. Can you let me know the results?

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