Just want to test my dll project

Im having trouble with testing my dll project.  I have previously compiled my dll but now I am adding some functionality to it.  I am having trouble testing becuase it is using only the compiled version.  I want to be able to step through my code in the dll project..

This must be easy...
LVL 2
kiprimshotAsked:
Who is Participating?
 
gbarenConnect With a Mentor Commented:
kiprimshot,

1. Project Menu/Project Properties/Component Tab
set Version Compatibility to "Binary Compatibility" and select the previously compiled DLL.

2. File/Add Project/Standard EXE

3. Right-click new project and make it "Start Up"

4. In the new project Project/References add your DLL

5. Write code in the EXE project to test your DLL. You can set breakpoints and watches, etc. in the DLL project.


0
 
Éric MoreauSenior .Net ConsultantCommented:
From the File menu, select "Add project" and select "Standard EXE". Now right-click the new project and select "Set as startup". You will be able to debug your DLL.
0
 
kiprimshotAuthor Commented:
I have done this already...the project only uses the compiled version of the dll..  I do not want to recompile a new dll every test..

Am I doing something wrong.  It seems as though this worked before.
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
smkkaleemCommented:
If you want to debug your DLL, you  have to set a reference to that DLL thru Project/References and do the same as emoreau has mentioned. You will be debugging the DLL that is part of the project group you are testing from
0
 
bob_onlineCommented:
You're almost set up correctly...
In the projects/references menu, un check the dll and click OK.
Then select projects/references again and hit the browse button.  Find the vbp file for your dll project and select the VBP instead of the DLL
0
 
ICaCommented:
Did you deregister your dll from the registry? If not try and check again.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.