无法加载文件或程序集 "Microsoft.VisualStudio.Services.Common, Version=12.0.21005.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Could not load file or assembly "Microsoft.VisualStudio.Services.Common, Version=12.0.21005.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
当我使用以下代码尝试连接到我的 TFS 服务器(使用 C#)时,我不断收到异常消息 Could not load file or assembly "Microsoft.VisualStudio.Services.Common, Version=12.0.21005.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
:
Uri tfsUri = (args.Length < 1) ?
new Uri("http://Server:Port/VDir") : new Uri(args[0]);
TfsConfigurationServer configurationServer = TfsConfigurationServerFactory.GetConfigurationServer(tfsUri);
代码引用自:
https://msdn.microsoft.com/en-us/library/bb286958(v=vs.120).aspx
无法在我的本地系统或互联网上找到此 dll
- “Microsoft.VisualStudio.Services.Common”。
你能帮我看看我遗漏了什么吗?
我用这段代码进行了测试,一切都按预期工作。
那么,您是如何创建项目的?您是否安装了 Nuget 包:Microsoft.TeamFoundationServer.ExtendedClient
如果还没有,请尝试在Package Manager Console
中安装它,然后再检查一下。
当我使用以下代码尝试连接到我的 TFS 服务器(使用 C#)时,我不断收到异常消息 Could not load file or assembly "Microsoft.VisualStudio.Services.Common, Version=12.0.21005.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
:
Uri tfsUri = (args.Length < 1) ?
new Uri("http://Server:Port/VDir") : new Uri(args[0]);
TfsConfigurationServer configurationServer = TfsConfigurationServerFactory.GetConfigurationServer(tfsUri);
代码引用自:
https://msdn.microsoft.com/en-us/library/bb286958(v=vs.120).aspx
无法在我的本地系统或互联网上找到此 dll
- “Microsoft.VisualStudio.Services.Common”。
你能帮我看看我遗漏了什么吗?
我用这段代码进行了测试,一切都按预期工作。
那么,您是如何创建项目的?您是否安装了 Nuget 包:Microsoft.TeamFoundationServer.ExtendedClient
如果还没有,请尝试在Package Manager Console
中安装它,然后再检查一下。