我将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
时的情况相同
我该如何解决这个问题? 非常感谢您的回答。
答案 0 :(得分:1)
您不能将TFS SDK用于Metro应用程序,因为TFS SDK所需的.Net Framework依赖项在Metro应用程序中不可用。