I have a web project with a config transform.
On my local machine, when the project is built, the transform works fine.
However, my project is pushed to TFS and built there, the config file is transformed in the main drop folder; However, the version in _PublishedWebsites is the original, un-transformed version.
This is causing problems when using Octopack, since it packs everything in the _PublishedWebsites\ folder to deploy, thus, I'm getting an un-transformed file in my deployment
Is there a way to make TFS transform the config file before pushing to _PublishedWebsites
Edit
We're using TFS 2012