Previously publishing my web api app was working perfectly. Today i converted my app from being \"any cpu\" to x86. Now when i\'m publishing its adding a connection string t
Add this project property to the .csproj file by editing the XML:
false ... ...
Alternatively, use a Web Publishing Pipeline targets file as described in this related StackOverflow question.