将引用“Microsoft.TeamFoundation.Client.dll”添加到Windows Metro Style应用程序时出错

时间:2012-09-07 23:08:08

标签: visual-studio-2012

我将Microsoft.TeamFoundation.Client的引用C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ReferenceAssemblies\v2.0添加到我的Windows Metro样式应用中。设置Copy Local = true,但是当我尝试构建此项目时,出现错误:

错误1 Invalid Resx file. This .resources file should not be read with this reader. The resource reader type is "Microsoft.TeamFoundation.Client.GzipResourceReader, Microsoft.TeamFoundation.Client, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ReferenceAssemblies\v2.0\Microsoft.TeamFoundation.Client.dll TFS Project Management

我无法在copy local = false样式应用中设置Windows Metro,因为此DLL未复制到应用包中(我发出运行时错误:Could not load file or assembly 'Microsoft.TeamFoundation.Client, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

Microsoft.TeamFoundation.Common.dll工作正常,问题仅出在Microsoft.TeamFoundation.Client

我从Microsoft.TeamFoundation.Client.dll

添加C:\Windows\assembly\GAC_MSIL\Microsoft.TeamFoundation.Client\11.0.0.0__b03f5f7f11d50a3a时的情况相同

我该如何解决这个问题? 非常感谢您的回答。

1 个答案:

答案 0 :(得分:1)

您不能将TFS SDK用于Metro应用程序,因为TFS SDK所需的.Net Framework依赖项在Metro应用程序中不可用。