A bit of class library help
Posted on 2008-06-18
If you're developing two different class libraries that both reference each other, how do you go about building them? I've put one namespace in one, and one namespace in the other, and files in both libraries reference the other namespace. When I go to build the project it says namespace 'mynamespace' could not be found. How do I get around this?
As a bit of background, all the classes used to be in an App_Code directory within my ASP.net web application, so previously wasn't a problem. I now want to compile them into separate class libraries so I can create new database classes that the application can use to tie into MySql in place of MsSql for other projects.
Ideally, I'd like a classlibrary 'MSSQL.dll' and a class library 'MYSQL.dll' that contain all the same methods/functionality but just for the two different database engines. There'd be a third class library 'main.dll' that, depending on which database .dll is present, will use.
Is this possible? Many thanks for any guides/suggestions