Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Watin reference problem

Tags:

c#

watin

When i add watin reference to solution, i can write code, i'm able to see IE class intance methods but when start debugging, it says

The type or namespace name 'WatiN' could not be found (are you missing a using directive or an assembly reference?)

Then i see nothing about instance methods although " using WatiN.Core; " statements.

i tried both console, winforms and WPF app but the same things happens. Any comments?

like image 732
EmrahIlker Avatar asked Jun 10 '10 19:06

EmrahIlker


1 Answers

If you are using VS 2010 - check to see if the assembly is targeting .Net 4.0 Client Profile. Change that to .Net 4.0 or .Net 3.5 depending on your needs.

Watin is probably built using 3.0 or 3.5sp1 not 4.0 Client Profile - and will thus not work with Client Profile. EDIT: VS 2010 has 4.0 Client Profile set as default target framework in new projects for some stupid reason.

like image 82
Goblin Avatar answered Sep 19 '22 12:09

Goblin