2012-09-07 89 views
0

我從C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ReferenceAssemblies\v2.0添加引用Microsoft.TeamFoundation.Client到我的Windows Metro風格應用程序。設置Copy Local = true,但是當我嘗試建立這個項目,得到了一個錯誤:將引用「Microsoft.TeamFoundation.Client.dll」添加到Windows Metro風格應用程序時出錯

錯誤1Invalid 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

我不能在Windows Metro風格的應用程序設置copy local = false,因爲這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.dllC:\Windows\assembly\GAC_MSIL\Microsoft.TeamFoundation.Client\11.0.0.0__b03f5f7f11d50a3a

我怎樣才能解決這個問題同樣的情況? 非常感謝您的回答。

回答

1

您不能在Metro應用程序中使用TFS SDK,因爲TFS SDK所需的.Net Framework依賴項在Metro應用程序中不可用。

相關問題