0

When deploying app with msdeploy, i am changing connection string with option -setparam, this is changing connection string but replacing " 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 """

chandra
  • 693
  • 3
  • 8
  • 21

1 Answers1

1

MS deploy -setParam option will replace """ with "&&quot" in the connection strings, to counter that i had to replace """ with single quotes ' in the connection string

chandra
  • 693
  • 3
  • 8
  • 21