1

So I added a project to my solution, it builds, but I can't seem to reference it, as it says its missing. I've looked and tried all the answers here:

The type or namespace name could not be found

but none worked for me. all projects are set to target .NET Framework 4.5, Site project is dependant on the reference project, they all have the same Configuration Properties (Debug, Any CPU, Build)...

Any other ideas?

enter image description here

Community
  • 1
  • 1
noobieDev
  • 3,063
  • 3
  • 14
  • 14

1 Answers1

3

I could be wrong but i think a depency is only used for build order. Did you add the project as a reference via Project folder => References(Right click on it) and select Add Reference...
Then open Solution,Projects and check the project that holds the namespace you are using(in your case DataTables.mvc)

Images for clarity :
enter image description here enter image description here

Kristof
  • 3,267
  • 1
  • 20
  • 30
  • How I added it was to r-click on the solution, add existing project, and browse to the project folder/.csproj file. – noobieDev Jun 18 '14 at 12:43
  • when you say "Project folder" is this in Visual Studio or Windows Explorer or ...? Because I don't see a "References" when I r-click. – noobieDev Jun 18 '14 at 12:45
  • In visual studio open the Project folder. There is a subfolder references. Right click on that folder and click Add Reference ... Do not select a specific file, visual studio should show you a list of your projects – Kristof Jun 18 '14 at 12:46
  • ok, i see thanks that solved it! I didn't add the reference in my project... whoops – noobieDev Jun 18 '14 at 12:47