Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

referencing System.Windows.Automation

I wanted to try out some of the automation stuff available through BugSlayer, but am having problems with the references.

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.

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?

like image 753
tbischel Avatar asked Sep 24 '09 01:09

tbischel


2 Answers

The UIAutomationClient.dll is located in this folder:

C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0 

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).

like image 117
Graviton Avatar answered Oct 11 '22 02:10

Graviton


add Uiautomationclient dll present under .net tab

like image 20
sharmila Avatar answered Oct 11 '22 04:10

sharmila