I had two projects that I had published to the web server many times from Visual Studio 2010. I use web.config transformations to set my connection strings different based on which server I’m publishing too.
But while traveling I needed to make some edits using Visual Web Developer 2010 Express. When I published from that, I started seeing that my connection strings were getting replaced with something like “$(Replaceable Token…)” Huh?
After googling, the fix was easy. I had to open my .csproj file and add:
in the <PropertyGroup> section near the top. Not sure why I suddenly needed this, but it solved the problem!