Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
    
what currently happens when tests are run on the build server? –  Betty Oct 4 '12 at 8:34
add comment

1 Answer

up vote 0 down vote accepted

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.