将dll添加到解决方案并引用它们

时间:2015-01-06 20:12:33

标签: c# .net visual-studio-2013 .net-4.0 tfs-sdk

我正在开发.net解决方案。由于某些复杂性,我被要求在解决方案中添加dll,然后从解决方案中引用dll。

   It works fine on the local box , and builds perfectly on TFS Build server,

但是当我在部署后在服务器上运行它时,我得到一个运行时异常说:

Could not load file or assembly 'Microsoft.TeamFoundation.Client, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. 

你知道我此刻应该做些什么吗? 如果需要,我可以为您提供更详细的信息..请告诉我。

2 个答案:

答案 0 :(得分:1)

好像你需要获得Microsoft.TeamFoundation.Client.dll档案, 然后将其作为参考添加到您的应用程序

这是您描述的依赖项:

enter image description here


enter image description here

答案 1 :(得分:0)

两种可能的决议

  1. 将CopyLocal属性设置为 true ,以便在构建完成后添加dll的本地副本。

  2. 检查参考文件夹是否已在TFS中检查过。有时会发生在TFS中未添加引用文件夹。

相关问题