web.config transformation does not work on build server
<p>We are setting up continuous integration with team city doing builds on check-ins. This works fine, however it always builds with default web.config, it does not transform with development environment specific web config. 
In Visual Studio, I have custom build configuration created for development. The <code>web.development.config</code> transforms correctly when I publish locally with <code>development</code> configuration selected, but this does not happen on the build server. 
In team city, as part of msbuild step I have created a build parameter <code>sys.configuration</code> and I am passing <code>development</code> as the value. But when it runs, the resulting web.config is not transformed with the development settings.  I also tried setting the command line parameter to <code>/p:configuration=development</code> with no success. </p>

<p>Any help will be much appreciated.</p>