Solved

Visual C# 2010 Express compile error

Posted on 2010-11-17
3
302 Views
Last Modified: 2012-05-10
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?
0
Comment
Question by:DColin
3 Comments
 
LVL 10

Accepted Solution

by:
hosneylk earned 500 total points
ID: 34161782
have you added NUnit as a reference to your project?
0
 
LVL 26

Expert Comment

by:Anurag Thakur
ID: 34162051
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
0
 

Author Comment

by:DColin
ID: 34162176
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.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question