简体   繁体   English

MSDeploy -setParam选项在连接字符串中替换“”“”with“”和“`

[英]MSDeploy -setParam option is replacing `“"”` with` “&quot”` in the connection string

When deploying app with msdeploy, i am changing connection string with option -setparam, this is changing connection string but replacing " 使用msdeploy部署应用程序时,我正在使用选项-setparam更改连接字符串,这是更改连接字符串但替换" with " "

i have tried using "^" , it didn't work, if i use "^"" 我尝试使用"^" ,如果我使用"^"" "^" ,则无法正常工作 i am getting "^"" 我得到"^""

"C:\Program Files\IIS\Microsoft Web Deploy V3\msDeploy.exe"  -verb:sync -source:package="package.zip" -dest:auto -setParamFile="SetParameters.xml" -setParam:name="IIS Web Application Name",value="VALUE" -setParam:name="XXXX-Web.config Connection String",value="metadata=res://*/XXXXXXX|res://*/XXXXXXXX|res://*/XXXXXXXXX;provider=System.Data.SqlClient;provider connection string="data source=XXXXXXX;initial catalog=XXXXX;Integrated Security=SSPI;Persist Security Info=false;Trusted_Connection=Yes;multipleactiveresultsets=True;App=EntityFramework"" 

""" at end and in middle is getting replaced with """ 在结尾和中间被"""取代

MS deploy -setParam option will replace """ MS deploy -setParam选项将替换""" with "&&quot" in the connection strings, to counter that i had to replace """ 在连接字符串中使用"&&quot" ,以反驳我必须替换""" with single quotes ' in the connection string 用单引号'的连接字符串中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM