如何从UIAutomationClient.dll构建互操作dll [英] How to build a interop dll from the UIAutomationClient.dll

查看:237
本文介绍了如何从UIAutomationClient.dll构建互操作dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从现有的UIAutomationClient.dll版本4.0创建/构建一个互操作dll。
我试图通过以下命令使用TlbImp.exe:

I want to create / build a interop dll from the existing UIAutomationClient.dll Version 4.0.. I tried to use the TlbImp.exe with the following command:

TlbImp.exe path\UIAutomationClient.dll out:Interop.UIAutomationClient.dll

但是我收到以下错误消息:

But i'm getting the following error message:


Microsoft(R).NET Framework类型库汇编转换器
4.0.4013版权所有(C)Microsoft Corporation。

Microsoft (R) .NET Framework Type Library to Assembly Converter 4.0.4013 Copyright (C) Microsoft Corporation. All rights reserved.

TlbImp:错误TI0000:输入文件
'C:\Users\patrick\Desktop\UIAutomationCli ent.dll'不是有效的
类型库。

TlbImp : error TI0000 : The input file 'C:\Users\patrick\Desktop\UIAutomationCli ent.dll' is not a valid type library.

还有另一种方法来创建互操作dll或此错误的解决方案吗?

Is there another way to create the interop dll or a solution to this error ?

推荐答案

它存在于您的计算机中的 Common7\IDE\PublicAssemblies 子目录。它具有Microsoft版权,并且不属于可再发行文件,因此即使不包含任何代码,制作副本也有些麻烦。

It is present on your machine in the Common7\IDE\PublicAssemblies subdirectory of your VS install directory. It carries a Microsoft copyright and is not part of the redistributable files so just making a copy is a bit iffy, even though it doesn't contain any code.

您可以通过在c:\windows\syswow64\uiautomationcore.dll上运行Tlbimp.exe创建自己的文件。在32位操作系统上使用system32。

You can create your own by running Tlbimp.exe on c:\windows\syswow64\uiautomationcore.dll. Use system32 on a 32-bit operating system.

您应该对此有所怀疑。

这篇关于如何从UIAutomationClient.dll构建互操作dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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