Loading TFS assembly error

孤街醉人 提交于 2019-12-11 07:34:14

问题


I am trying to execute tfs commands using powershell scripts and getting the following issue

Unable to find type [Microsoft.TeamFoundation.Client.TeamFoundationServerFactory]: make sure that the assembly containing this type is loaded.

What needs to be done?

Thanks Jai


回答1:


On my box the assembly holding that type is here:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ReferenceAssemblies\v2.0\Microsoft.TeamFoundation.Client.dll.

Probably powershell is not probing in that directory.

Try copying the assembly to the folder where your popwershell script is.



来源:https://stackoverflow.com/questions/12920110/loading-tfs-assembly-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!