Hello,
I am trying to run our tests with the command prompt via MSTest.exe. The tests run fine from within VS, but I get this error from the command prompt.
MSTest /testmetadata:C:\myProject\project.vsmdi
...
Starting execution...
Specified cast is not valid.
We have 800 total tests, 300 ignored, 5 projects. Each individual project runs fine from the command line using "/testcontainer".
Some notes:
1 - I am running VS Team Edition for Software Dev.
2 - I am using the *.vsdmi file created from VS. It works fine on smaller tutorial projects.
3 - I saw this post to make sure that each project has at least 1 test:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=162564&SiteID=1
I still get the "Specified cast is not valid" error. Does anyone know what else could be causing it?
Thanks,
Tim