出于某些原因,我正在尝试切换到 TFS 2015 SDK dll(版本 14)。首先,它们在 nuget 中,其次,2013 SDK dll(版本 12)需要在 IIS 中翻转 32 位标志。
我拉下了nutget package并且命名空间都与现有版本 12 命名空间一致。
一切编译正常,本地部署没有错误。
但是,当我尝试使用 WorkItemStore
服务加载项目时。
TfsTeamProjectCollection collection = new TfsTeamProjectCollection(URL);
var service = collection.GetService<WorkItemStore>();
我得到:
Additional information: Unable to load DLL 'Microsoft.WITDataStore64.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
当我在 IIS 中切换回 32 bt 标志时,我得到:
Additional information: Unable to load DLL 'Microsoft.WITDataStore32.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
注意:这是所有工作代码,我所做的只是删除对 GAC 程序集的引用并添加 NUGET 包。
根据 Microsoft , nuget 包应该与 TFS 2013 一起工作,并为 2013 SDK 的用户工作
Existing Windows apps leveraging an older version of the TFS Client OM.
最佳答案
以上都不适合我。我必须将该文件复制到我的 C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE 文件夹(通过使用 procmon 查看我的应用程序在何处查找它发现了这一点) .
关于c# - TFS 2015 SDK 缺少 Microsoft.WITDataStore64.dll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32128581/