I have used Nettiers for some time now on a number of different projects. I was away from it for a while but earlier this year I had a project come up so grabbed the latest version etc. (including Codesmith Generator) and developed happily. I had no problems with the project. I mention this to indicate that my dev environment has not changed (VS 2010, VB.Net, SQL Server 2008 Dev) since that project.
Now I have another project and am having issues.
My DB is all set and I use Nettiers to generate the data access layer. I add the references in VS and the imports and this is where I get the weird error. When I first open the project everything is fine, no green squigglies or red ones. Intellisense works on Datarepository.whatever until I go to build. Then my import of the IMDB.Data (no, not that IMDB) gets a green squiggle with a 'contains no public members or cannot be found error.'
Can anyone think of why this may be happening? I have gone through my settings/app.config/generator params etc. and am stumped. Any and all help would be appreciated.
This problem is solved!! I had my project set to use .Net 4 Client Profile when I switched it to regular .Net 4 the issue went away. Not really sure why but at least I can continue coding.
Thanks for the suggestions
Do you have any addins like ReSharper? I've seen some issues with ReSharper and VB where this happens.
CodeSmith Tools, LLC. Software Development Engineer
.NetTiers team | Visit http://www.nettiers.net
No, I don't have any addins. Vanilla VS install.
If you could attach a sample project that can reproduce this, it would be greatly appreciated. Could you try generating against PetShop and see if you can reproduce.