Code-First Database Creation During TFS 2010 CI Build

Posted by jedimindtrickster on Server Fault See other posts from Server Fault or by jedimindtrickster
Published on 2012-10-02T16:12:09Z Indexed on 2012/10/05 9:39 UTC
Read the original article Hit count: 176

I would like to automate code-first database generation during the automated CI build of a web project in Team Foundation Server 2010.

When run locally the tests create a code-first database specified by the connection string in the app.config of the tests project. How do I configure the TFS Build Configuration to mimic this behaviour on the TFS build server?


Edit

The problem, it turns out, was that the TFS build server was successfully running the test which was using the default connection string in the app.config which pointed to the local SQL Server, not where I expected it.

The solution was to use SlowCheetah on the TFS server as a means to transform the App.config file using the QA transform as per this blog article.

© Server Fault or respective owner

Related posts about configuration

Related posts about team-foundation-server