So, I have VS 2010 installed and am in the process of modifying my MSBuild script for our TeamCity build integration. Everything is working great with one exception.
Alternatively, you try using the XDT Transformation Tool:
http://ctt.codeplex.com
I'm using this instead of messing with obscure msbuild targets. Works with app.config not just web.config.