YZlat
asked on
Issue testing the Class Library
I have a Class Library I built and I am testing it out. i have created a console app just to instantiate the class library and call one of the methods:
Then, in my class library properties I set Start external program to the exe I created for test, running code above. Then I just debug the class library. it has worked so far but now whenever I run with debug my class library, it opens the driver project and runs it but gives me the error message that makes it clear it is still running the code from class library that has been changed. I tried doing "Clean Project" before Rebuilding but still the same thing happens. Closing and re-opening Visual Studio does not help. What can I do?
Dim obj as MyComponent= New MyComponent()
With obj
.property1="Test"
.property2 ="Another test"
.MyMethod1()
End With
Then, in my class library properties I set Start external program to the exe I created for test, running code above. Then I just debug the class library. it has worked so far but now whenever I run with debug my class library, it opens the driver project and runs it but gives me the error message that makes it clear it is still running the code from class library that has been changed. I tried doing "Clean Project" before Rebuilding but still the same thing happens. Closing and re-opening Visual Studio does not help. What can I do?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks! Adding both to the same solution solved the issue
Then it's likely that you'll have to remove and re-add the reference to the DLL in your console app after you rebuild the class library project. The best idea is to just add the console app to the class library solution and create a local project reference. Then you won't ever have to worry about it. Just rebuild the solution whenever you need to.
ASKER