Solved

Visual C# 2010 Express compile error

Posted on 2010-11-17
3
299 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
Comment Utility
have you added NUnit as a reference to your project?
0
 
LVL 26

Expert Comment

by:Anurag Thakur
Comment Utility
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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

772 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

10 Experts available now in Live!

Get 1:1 Help Now