Lightswitch Parameters.xml-无法转换现有数据源 [英] Lightswitch Parameters.xml - existing datasource cannot be transformed
问题描述
大家好,
我有一个简单的Lightswitch项目,该项目声明了一个现有数据源,我想打包它,并通过msdeploy.exe进行部署.
I've got a simple Lightswitch project which declares an Existing Data Source, and I want to package it, and deploy it via msdeploy.exe.
(VS 2012专业版,MSDeploy 7.1.618.0)
(VS 2012 Professional, MSDeploy 7.1.618.0)
但是,在作为部署包一部分的parameters.xml文件中生成的XPath是错误的.它输出:
However the XPath generated in the parameters.xml file which is part of the deployment package is wrong. It outputs:
match="configuration/connectionStrings/add ...
,根据msdeploy(详细模式),该
与web.config中正确命名的连接字符串不匹配.如果我手动将其更改为以下内容,然后重新压缩
which according to msdeploy (in verbose mode) does not match the correctly named connection string in web.config. If I manually change this to the following, and re-zip
match="/configuration/connectionStrings/add ...
(请注意配置前的正斜杠),然后一切正常,并使用正确的连接字符串部署程序包.
(note the leading forward slash before configuration), then things work and the package is deployed with the correct connection string.
任何人以前都没有看过这个书,或者有任何想法...我看过一些关于用不同的parameter.xml文件重新打包软件包的文章,但这似乎很重要.
Anyone seen this before or got any ideas... I've seen some posts around re-packaging the package with a different parameters.xml file but this seems heavyweight.
谢谢
Graeme
推荐答案
感谢您报告此问题.它将在即将发布的版本中修复.
Thanks for reporting this issue. It will be fixed in an upcoming release.
这篇关于Lightswitch Parameters.xml-无法转换现有数据源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!