无法加载“Microsoft.WITDataStore32.dll”在Windows窗体中应用程序部署(VS 2015) [英] Unable to load "Microsoft.WITDataStore32.dll" in windows forms Application deployment (VS 2015)

查看:244
本文介绍了无法加载“Microsoft.WITDataStore32.dll”在Windows窗体中应用程序部署(VS 2015)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用TFS API(版本11)创建了表单应用程序。它工作正常。我们现在必须指向最新的API。

I have created forms application using TFS APIs (version 11). It was working fine. We now have to point to latest API.

因此,我在VS 2015和Installed nugget包中打开了同一个项目"Microsoft.TeamFoundationServer.ExtendedClient 15.112.1"。并使用此版本引用了所有与TFS相关的dll。

So, I opened same project in VS 2015 and Installed nugget package "Microsoft.TeamFoundationServer.ExtendedClient 15.112.1" and referenced all TFS related dlls with this version.

现在,我的应用程序在本地运行正常。但是当我发布时,它会为"Microsoft.WITDataStore32.dll"抛出dll错误。 基本上,在
发布 - >应用程序文件文件夹中,此文件未被复制自动 因此抛出错误。我尝试了几种方法,但没有任何效果。

Now, my application is running fine locally. But when I publish, it throws dll error for "Microsoft.WITDataStore32.dll". Basically, in Publish->Application Files folder, this file is not getting copied automatically and hence throwing error. I tried several ways, but nothing worked.

请帮我解决此错误。 

Please help me to resolve this error. 

推荐答案

Hi MittalManglani,

Hi MittalManglani,

感谢您在此发帖。

Microsoft.WITDataStore * .dll是ExtendedClient包的一部分,它们是本机dll,无法在托管项目中引用。您需要手动将dll复制到bin文件夹中以进行运行时解析。

Microsoft.WITDataStore*.dll is part of the ExtendedClient package, they are native dlls and cannot be referenced in managed project. You will need to manually copy the dll into your bin folder for runtime resolution.

您可以从包文件夹中复制它:

You can copy it from the package folder:


  • Microsoft.WITDataStore32.dll位于.. \ packages \ Microsoft.TeamFoundationServer.ExtendedClient。<版本号> \ lib \ native \ x86
  • Microsoft .WITDataStore64.dll位于.. \ packages \ Microsoft.TeamFoundationServer.ExtendedClient。<版本号> \ lib \ nnative \ amd64

(注意这些路径指向NuGet包文件夹)

(note these paths point to the NuGet package folder)

最好的问候。


这篇关于无法加载“Microsoft.WITDataStore32.dll”在Windows窗体中应用程序部署(VS 2015)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆