When I add an existing test project, my solution lacks the vsdmi and the testrunconfig files. How to create it?
In Visual Studio 2010 just go to Test → Create New Test List...
It will automatically add the vsdmi
file and put it into the correct location, no need to add a solution item manually.
The solution to this is a little tricky. You have to add a "New Item" to your solution, not your test project. In the "Add New Item" dialog, you can pick the "Test Run Configuration" category and then create the configuration file manually. This will also generate a vsdmi file.
Hope this helps.