当我使用下面的代码,我发现了错误等:无法加载文件或程序集“Microsoft.VisualStudio.Services.Common,版本= 12.0
Could not load file or assembly 'Microsoft.VisualStudio.Services.Common, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.":"Microsoft.VisualStudio.Services.Common, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"}
Uri tfsUri = (TFSServerURL.Length < 1) ? new
Uri("http://100.201.011.22:8080/tfs/yuii/") : new Uri(TFSServerURL);
mObjTFSServer = new TeamFoundationServer(tfsUri, networkCredential);
我不确定你为什么要对TFS Dll执行regsvr。应该没有理由这样做。 – Sage