4

I created a project references in one c# 4.0 project to another c# 4.0 project in the same solution.

They are both EXE projects

when I add the reference intelesense starts picking up all of the classes in the referenced project. However when I go to compile I get the following error "The type or namespace name '...' could not be found (are you missing a using directive or an assembly reference?)". And then all of the Class names lose their blue color and get underlined in red.

Rabbi
  • 4,622
  • 9
  • 35
  • 45
  • I know this if you have an existing reference which got changed in background. Did you try to remove the reference and add it again to the project? – MUG4N May 12 '10 at 15:23
  • yup tried. when I re added it the source code coloring went back to normal and the intelisense started working again. Then when I tried to compile, it gave me the same error, and source coloring and intelisense died again. – Rabbi May 12 '10 at 16:02
  • Any resolution? I am having the same issue. – Todd Friedlich Nov 16 '10 at 14:17
  • http://stackoverflow.com/questions/2751634/simple-enterprise-library-console-application-refuses-to-compile – Todd Friedlich Nov 16 '10 at 14:19

1 Answers1

4
  1. Right click on Project Properties
    1. Check Target Framework
    2. If it is .net Framework 4.0 Client Profile than change it to .net Framework 4.0
dotnetstep
  • 17,065
  • 5
  • 54
  • 72