The type or namespace name 'Framework' does not exist in the namespace 'NUnit'

Asked by Sara M

I'm trying to run the CSharp.sln project from the NUnit 2.6.2 samples on Microsoft Visual Studio 2010 and I'm getting this error: "The type or namespace name 'Framework' does not exist in the namespace 'NUnit' (are you missing an assembly reference?) and for warnings, it says "The referenced component 'nunit.framework' could not be found".

What I checked on References for cs-money, cs-failures and cs-syntax and nunit.framework appears under .NET. I'm not sure how to direct it to the proper location. Under recent, it seems to be nunit.framework and nunit.framework.dll. Is it because there are two different paths to nunit.framework?

What should I do?

Thank you.

Question information

Language:
English Edit question
Status:
Answered
For:
NUnit V2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Charlie Poole (charlie.poole) said :
#1

This is a general problem with any samples. The references in the project are based on the setup of the machine where the sample was created. You need to replace those references with those on your own system. Just delete the reference that's there and add a new one using the .NET tab.

BTW, this should be explained in the readme distributed with the samples.

Can you help with this problem?

Provide an answer of your own, or ask Sara M for more information if necessary.

To post a message you must log in.