i'm trying to create a strongly-typed view using Visual Studio 2008. I can right-click a controller action and choose: Add view... In the next dialog window there is an option 'Create a strongly-typed view'. If I check this option I can select a list of classes that are in my current project.
However I cannot select the class I need which is in a class-library that I referenced.
Any suggestions?
Just create you view with any of the model classes then manually edit ASPX and replace the model class with the one you want. Probably the dialog window is just not intelligent enough.
But in my personal opinion, using "outside" classes as your models is very wrong.
All models, views and controllers should be here, directly in your project. They then can use internally whatever they need wherever it is.