我從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.dll
從C:\Windows\assembly\GAC_MSIL\Microsoft.TeamFoundation.Client\11.0.0.0__b03f5f7f11d50a3a
我怎樣才能解決這個問題同樣的情況? 非常感謝您的回答。