• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 140
  • Last Modified:

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...
0
kiprimshot
Asked:
kiprimshot
1 Solution
 
É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
 
gbarenCommented:
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now