I am creating a publishable package and when I navigate to obj\\Debug\\Package\\PackageTmp directory, I am seeing the web.config\'s connection string is replaced by
obj\\Debug\\Package\\PackageTmp
I had to do what the accepted answer said, but instead in the Properties/PublishProfiles/__THEPROFILE__.pubxml file rather than the .csproj file.
Properties/PublishProfiles/__THEPROFILE__.pubxml
.csproj
(this may because I'm using VS2012?)