引用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:\WINDOWS\assembly\GAC_MSIL\UIAutomationClient\3.0.0.0__31bf3856ad364e35
,我可以看到dll命令提示符,但是如果我浏览到Visual Studio中的程序集,我实际上不能访问dll。
I can see the dll if I navigate to C:\WINDOWS\assembly\GAC_MSIL\UIAutomationClient\3.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 Files\Reference Assemblies\Microsoft\Framework\v3.0
如果您在添加参考 - > .Net
选项卡,那么您必须使用浏览
选项卡转到给定的路径,并添加程序集(右C舔在参考文献
上,选择添加引用
,单击浏览
标签)。
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屋!