.net XDT转换更改命名空间前缀

.net XDT转换更改命名空间前缀,.net,xml,nuget,xdt-transform,xdt,.net,Xml,Nuget,Xdt Transform,Xdt,我正在生成一个NuGet包来包装一些第三方DLL,其中包括web.config.install.xdt文件,用于在web.config中插入/更新一些预期的部分 问题是,当它运行转换时,它重命名了一个xsi前缀,第三方代码依赖该前缀 有没有办法强制实现名称空间的精确映射 这是XDT文件,元素已重命名 <?xml version="1.0"?> <configuration xmlns:xdt="http://schemas.microsoft.co

我正在生成一个NuGet包来包装一些第三方DLL,其中包括web.config.install.xdt文件,用于在web.config中插入/更新一些预期的部分

问题是,当它运行转换时,它重命名了一个xsi前缀,第三方代码依赖该前缀

有没有办法强制实现名称空间的精确映射

这是XDT文件,元素已重命名

<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <configSections>
        <section name="ThirdPartySection" type="ThirdPartySection.Configuration.Section, ThirdPartySection.API, Culture=neutral, PublicKeyToken=abc123" allowLocation="true" allowDefinition="Everywhere" xdt:Transform="Insert"/>
    </configSections>
    <ThirdPartySection xsi:schemaLocation="uri/file.xsd file.xsd" xmlns="uri/file.xsd" xdt:Transform="Insert">
        <Localisation defaultLanguage="en-gb" />
        <Subsections />
        <SomeElement />
    </ThirdPartySection>
</configuration>

我已经将名称空间声明移动到根元素和第三个partySection元素,但没有任何效果。谢谢你的建议