當我使用下面的代碼,我發現了錯誤等:無法加載文件或程序集「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