Click here to Skip to main content
15,919,245 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I downloaded QMailClient and compiled it successfully. I then downloaded the associated test routine, added it to the QMailClient project, commented out code I did not need to test the Read Mail function. After satisfying all the VB.NET requirements, I tried to run it in the debug mode, and received a reply that said, "A project with an Output Type Class Library cannot be started directly".

What I have tried:

I removed the test routine, made it into a separate Project, created a Dummy Solution as specified by MS, added the QMailClient Project and the Test Project, and tried to run Debug. I received a 3 errors saying "POP3Client is not defined" (in the test code), yet when I tried to run them in the same project, this error was not encountered. In other words, it found all the links.

Do I need to "install" the QMailClient? (The bin directory shows MailClient.dll, 35KB, MailClient.pdb, 84KB and MailClient.xml, 58KB)

Thank you for your assistance,

Lew
Posted
Updated 7-Oct-17 8:51am

1 solution

This seems like two different questions:
- Missing a reference, when library and test are in different solutions and
- Running a class library, which is not possible without an executable host.

The missing reference often happens when the relative path is incorrect after splitting the solution in two. Select the reference and check the path, if it is pointing to the actual DLL you want to test. If it does not, delete the reference and add it again by browsing to the actual location of your file. This should solve this issue.

The second issue could be that changing the solution has the wrong project set as startup project (shown in bold). Your startup project has to be an executable.

Hope this gives you some pointers in resolving your questions!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900