引用 System.Windows.Automation [英] referencing System.Windows.Automation
问题描述
我想尝试一些通过BugSlayer,但引用有问题.
I wanted to try out some of the automation stuff available through BugSlayer, but am having problems with the references.
我想弄清楚如何在 Visual Studio 中引用 System.Windows.Automation 库.我安装了 .NET Framework v3.5 和 VS 2008,但 UIAutomationClient 和 System.Windows.Automation 都没有作为参考选项出现在 .NET 或 COM 选项卡中以供参考.
I'm trying to figure out how to reference the System.Windows.Automation library in visual studio. I have the .NET Framework v3.5 installed, and VS 2008, but neither the UIAutomationClient nor System.Windows.Automation appear as a reference option in either the .NET or COM tabs for the references.
如果我通过命令提示符导航到 C:WINDOWSassemblyGAC_MSILUIAutomationClient3.0.0.0__31bf3856ad364e35
,我可以看到 dll,但是如果我在 Visual Studio 中浏览到程序集,我实际上无法访问 dll.
I can see the dll if I navigate to C:WINDOWSassemblyGAC_MSILUIAutomationClient3.0.0.0__31bf3856ad364e35
through the command prompt, but if I browse to the assembly in Visual Studio, I can't actually get to the dlls.
我是否忽略了将其包含在我的项目中的简单方法?
Have I overlooked a simple way to include this in my project?
推荐答案
UIAutomationClient.dll
位于此文件夹中:
C:Program FilesReference AssembliesMicrosoftFrameworkv3.0
如果您在 Add Reference->.Net
标签中找不到,那么您必须使用 Browse
标签转到给定的路径,并且添加程序集(右键单击References
,选择add reference
,单击browse
选项卡).
If you can't find in your Add Reference->.Net
tab, then you have to use the Browse
tab to go to the given path, and add the assembly (Right Click on the References
, choose add reference
, click browse
tab).
这篇关于引用 System.Windows.Automation的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!