We have created our own application for internal use, which refers to TFS. For this, we use Microsoft libraries (eg. Microsoft.TeamFoundation.dll).
When this application is deployed to PCs that already have Team Explorer or VS installed, everything is in order. When it is deployed to PCs that do not have this installed, it fails.
We include all the necessary DLLs, but the error we get is "Runtime common language detected and invalid program." The error occurs on a moderately harmless line:
TeamFoundationServer myServer = new TeamFoundationServer("ourserver.ourdomain.com");
Interestingly, the popular TFSAdmin tool (when you throw the necessary DLLs into 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.
Obviously, the DLL is not enough, and there is some kind of magic that occurs when these settings occur. Does anyone know what this is? Does anyone know how to do magic?
source share