Skip to main content
 首页 » 编程设计

msbuild之为什么这个 web.config 转换说它找不到 applicationSettings 元素

2024年12月31日8kerrycode

在 TeamCity 中转换 web.config 文件时出现以下错误。它发生在元素上,<applicationSettings xdt:Transform="Replace"> .

No element in the source document matches '/configuration/applicationSettings'



源文件具有此设置。知道如何解决这个问题吗?

请您参考如下方法:

我不得不从 configuration 中删除命名空间属性节点。声明的模式和我使用的元素存在一些冲突。

xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"