tags:

views:

191

answers:

2

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?

+3  A: 

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.

Goblin
Works like a charm, thanks Goblin!
EmrahIlker
Thanks Goblin, solved my problem too :)
Nailuj
@Goblin. Works well now. Thanks.
Fábio Antunes
A: 

Thanks a lot for the answer!

Gwen