1

Is there a way to disable connection strings auto generation in publish profile? I would like to generate package and SetParameters file with parameters specified in Parameters.xml only, without any connection strings.

Roman Kuzyk
  • 241
  • 3
  • 15
  • 1
    http://stackoverflow.com/questions/14865379/removing-connectionstring-when-deploying-with-visual-studio-2012 can be helpful to you. Have a look at that Thread. – Jenish Rabadiya Jan 13 '15 at 11:22
  • AutoParameterizationWebConfigConnectionStrings doesn't work for me. I added it to proj file, but Publish command still creates connection string parameters in Publish profile. – Roman Kuzyk Jan 13 '15 at 11:52
  • 1
    I think you also need to add this to your web.config transformation ` ` – Jenish Rabadiya Jan 13 '15 at 12:03

1 Answers1

1

AutoParameterizationWebConfigConnectionStrings with <UpdateDestWebConfig>False</UpdateDestWebConfig> actually works. Thanks.

Roman Kuzyk
  • 241
  • 3
  • 15