How do I ensure that Publish gets the latest Build version?

I have successfully built a version of my app, and verified it's the one I want by running it. But when I go to Publish it, it does not copy this version of the app. I know that's the case because I'm using a compile "custom constant" to define app behavior.

thanks, Bob