I created my Entity Model in a class library project and added references to this project from other projects in my solution.I generated POCOs from the Model. All is good so far.
I added a WCF service application to this solution and referenced the data model project. The data model project, named "DataModel", is now unresolved and I get "The type or namespace name 'DataModel' could not be found (are you missing a using directive or an assembly reference?).
After making sure I had the appropriate assemblies referenced and using directives (both checked multiple times) I started digging into this a tad more hardcore. I created new projects, added the entity model to them (created from scratch and tried just copying), added this new project as a reference, etc. etc. Rebuilt my projects, my solutions, etc. I closed Visual Studio, shutdown my computer, danced, prayed, begged, pleaded, and took a break for lunch. No dice... same problem.
While retracing my steps, I discovered the culprit is the Model's Code Generation Strategy property. If I leave it set to 'Default', I do not get the error message. If I set this property to 'Code', which is what I need to generate POCOs using a template, I get the error message. So, problem found but not solved.
Another observation, in the service project, if I right-click the DataModel reference and select 'View in object browser' I only see the namespace and members if the above property is set to 'Default'. If it's set to 'Code', only the name of the reference appears in the object browser. Expanding it only changes the color of the triangle. It does not reveal any info below.
What should I do to fix this?