Solved

Visual C# 2010 Express compile error

Posted on 2010-11-17
3
300 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Runtime Error 2 27
Not showing page correctly 3 29
Error on link 14 36
Counting connections to SQL Server through C# 3 24
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

930 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now