Referencing main project from unit test project

In Visual Basic 2008, I have created a project for unit tests (working off a database of test data). I was running into some compilation problems caused by it, so I temporarily removed the project from the solution. I'm now ready to reinstate the project, but when I brought it back into the solution, I found that the links between it and the main application project aren't working, and all references to the primary namespace are giving a "not defined" or "not declared" error. The executable is listed in the project's references listing, but it doesn't show up beneath in the available namespaces to import; when I try to Add Reference and select the main project, nothing seems to happen. The project build order has the unit test project last, and it is marked with dependencies on the main project.

It should perhaps be noted that the primary project name is not the same as its namespace; this is because I have two versions of my application, the production and the development versions, and the namespace is the same but the development version has a different project & solution name. For the production version of the solution, the references are working correctly.

Any suggestions for what I'm missing to get the unit test project to see the primary project?
LVL 20
ElrondCTAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jeevan BordoloiCommented:
Very difficult to say what's going on in this case without really seeing it. Have you tried deleting all existing references from the test project, and then adding those again?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
it_saigeDeveloperCommented:
Also, you may try removing the existing reference, cleaning the solution and then re-adding the reference.

-saige-
ElrondCTAuthor Commented:
Jeevan, your suggestion worked. I don't know why I didn't think of that! Thanks.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.