Jim posted a few tips on making sure you get the right behavior on run/debug and publish when using the Windows Azure Tools for Microsoft Visual Studio.