.net core 更新到.NET Core 2.1.401后,Web.config转换失败

.net core 更新到.NET Core 2.1.401后,Web.config转换失败,.net-core,web-config,xdt-transform,asp.net-core-cli,.net Core,Web Config,Xdt Transform,Asp.net Core Cli,直到今天早上我更新到2.1.401,一切都很好。 我有一个CI/CD进程(使用Jenkins),它使用CLI命令在生成的web.config文件(由.NET Core生成)上运行转换。文件与生成的文件完全相同,没有任何更改: <?xml version="1.0" encoding="utf-8"?> <configuration> <location path="." inheritInChildApplications="false"> <

直到今天早上我更新到2.1.401,一切都很好。 我有一个CI/CD进程(使用Jenkins),它使用CLI命令在生成的web.config文件(由.NET Core生成)上运行转换。文件与生成的文件完全相同,没有任何更改:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <location path="." inheritInChildApplications="false">
    <system.webServer>
      <handlers>
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
      </handlers>
      <aspNetCore processPath="dotnet" arguments=".\MyService.WebApi.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
    </system.webServer>
  </location>
</configuration>
我不明白为什么会发生这样的错误,我不是在尝试匹配那个元素,我是在尝试插入元素,所以它当然不存在…它不应该存在

我似乎找不到任何关于打破2.1.301->2.1.401的变化的东西,我正在旋转我的轮子,试图修复所有20个因为这个原因而被打破的作业


任何洞察,想法,指出可能的错误,在这一点上,任何事情都是有帮助的

web.config.full中没有节
/configuration/system.webServer
节点。但是存在
/configuration/location/system.webServer
节点。

谢谢。我确实注意到在生成的web.config中添加了一个“location”节点,但直到您指出它,我才注意到区别。为此浪费了很多时间。
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" xdt:Transform="Insert" />
  </system.webServer>
</configuration>
 dotnet xdt --source .\web.config.full --transform .\web.dev.config --output .\web.config