4
如何选择注释或使用Web.config转换插入注释?Web.Config转换xml注释
无处可以找到关于此的任何信息。
我试图做之一: 1)在Web.config现有注释前插入一块XML(<serviceAuthorization impersonateCallerForAllOperations="true"/>
)的
OR
2)将在最后的注释和XML一组兄弟姐妹的:
至于我可以告诉Web.config文件转换不支持XPath轴,我已经尝试了一些他们的尝试和第一注释前插入一个节点:
<serviceAuthorization impersonateCallerForAllOperations="true" xdt:Transform="InsertBefore(/configuration/system.serviceModel/behaviors/serviceBehaviors/behavior[@name='behaviorOne']/serviceMetadata/preceding::comment()[1])"/>
<serviceAuthorization impersonateCallerForAllOperations="true" xdt:Transform="InsertBefore(/configuration/system.serviceModel/behaviors/serviceBehaviors/behavior[@name='behaviorOne']/child::node()[1]"/>
我已经尝试了其他几个,但你明白了。预览变换时我只是遇到了一个错误。
我似乎也无法找到关于如何插入评论的任何信息。我错过了什么吗?