0
一直在試圖轉換適用於我的配置文件中的一個在Visual Studio 2010章魚部署找不到命名空間轉換文件
目標文件開頭是這樣的:
forms.config
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:x="http://www.sitecore.net/xmlconfig/">
<sitecore>
<formsDataProvider type="Sitecore.Forms.Data.DataProviders.WFMDataProvider,Sitecore.Forms.Core">
<param desc="connection string">connection string goes here</param>
</formsDataProvider>
...
轉換文件如下:
forms.Staging.config
<?xml version="1.0" encoding="utf-8" ?>
<!-- For more information on using transformations
see the web.config examples at http://go.microsoft.com/fwlink/?LinkId=214134. -->
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:x="http://www.sitecore.net/xmlconfig/" xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<sitecore>
<formsDataProvider type="Sitecore.Forms.Data.DataProviders.WFMDataProvider,Sitecore.Forms.Core">
<param desc="connection string" xdt:Transform="Replace" xdt:Locator="Match(desc)">connection string for staging goes here</param>
</formsDataProvider>
</sitecore>
</configuration>
當分期建設八達通運行,這是什麼日誌中:
DEBUG [XML Transformation] The expected namespace http://schemas.microsoft.com/XML-Document-Transform was not found in the transform file.
曾試圖刪除其他的xmlns屬性無濟於事。
上述命名空間顯然在轉換文件上作爲配置節點中的一個屬性。我們有許多其他這樣的文件和轉換適用於罰款。所有轉換文件的構建操作都設置爲「內容」。
不知道我們是否可以使Octopus記錄這樣的消息,而不是調試錯誤,儘管如此。
有沒有其他人有類似的問題?
在此先感謝。
在部署日誌中,forms.config被列爲目標文件。 八達通在「Applying forms.Staging.config轉換文件...」消息後立即發出抱怨。 – Michali
其他人對於非Debug | Release .config文件的SiteCore和config變換也有類似的問題。是[this](http://stackoverflow.com/a/9592018/1077279)你的問題。 – shamp00