Link to home
Start Free TrialLog in
Avatar of DColin
DColinFlag for Thailand

asked on

Visual C# 2010 Express compile error

Hi Experts,

I am receiving the folowing error when I try to run some code I have downloaded:

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

I have installed NUnit how do I 'tell' the code I am trying to run where it is?
ASKER CERTIFIED SOLUTION
Avatar of hosneylk
hosneylk
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
when nunit is installed the assemblies are added into gac
so it might be the case the web config entries for nunit might not be the same as in the GAC
Avatar of DColin

ASKER

hosneylk:
have you added NUnit as a reference to your project?

No how do I do this.

I the Add Reference dialogue box under the .Net tab there is nunit.framework and nunit.mocks. I have selected both of these and they now appear listed under references with the other project files in the solution explorer. When I try to run the code it gives the same error.