We have built a custom application, for internal use, that accesses TFS. We use the Microsoft libraries for this (e.g Microsoft.TeamFoundation.dll).
When this application is deployed to PCs that already have Team Explorer or VS installed, everything is fine. When it’s deployed to PCs that don’t have this installed, it fails.
We include all the required DLLs, but the error we get is “Common Language Runtime detected and invalid program”. The error occurs on the moderately innocuous line:
TeamFoundationServer myServer = new TeamFoundationServer(“ourserver.ourdomain.com”);
Interestingly the popular TFSAdmin tool (when you drop in the required DLLs to the exe directory) gives the same error.
I also note that many other custom applications that access TFS (e.g. http://hinshelwood.com/tfsstickybuddy.aspx) also require Team Explorer or VS to be installed to work.
Clearly the DLLs are not enough and there is some magic that happens when these installs occur. Anyone know what it is? Anyone know how to make the magic happen?