COM DLLs do not get installed into GAC. Primary Interop Assemblies (PIAs) do, but I don't think that's what you need. On what machine are you getting this message? You're getting it because your COM DLL is not registered as COM server (with regsvr32.exe
). That has nothing to do with GAC. Once you have registered it on your development machine, you'll be able to add it as a reference to your .NET project. Adding it will generate the required interop assemblies, but they still will be local to your project, you don't have to install them into GAC.
Alternatively, you could use tlbimp
or aximp
tools and generate the interop assmeblies manually, then add them to the project.
Whatever option you take, the COM DLL still has to registered on your development machine, but it doesn't have to be so on the TFS build machine. More, you could use Isolated COM to avoid the registration requirement on the client machine. All you'd need then is to have the COM DLL and its interop assemblies residing in the same folder with your main application.