Unable to find [Microsoft.TeamFoundation.Client.TeamFoundationServerFactory] even though dll is already in GAC
I am trying to write a PowerShell script, but I'm running into an error. When my script gets to the line $tfs = [Microsoft.TeamFoundation.Client.TeamFoundationServerFactory]::GetServer($server) I get the error: Unable to find type [Microsoft.TeamFoundation.Client.TeamFoundationServerFactory]... InvalidOperation: (Microsoft.TeamF...onServerFactory:TypeName) [], RuntimeException Though my question is very similar to this question , I already know that the Microsoft.TeamFoundation.Client.dll file and its dependencies are in the GAC. The other question never clarifies that, and I think that might