Two Projects in Solution, One acts like COM
-
13. dubna 2012 14:13
Hi All,
I have a solution with multiple projects. One of these is ProjectA, I copied ProjectA and renamed it ProjectB. Other than a few code changes in subs and functions, the two projects are identical. The problem is ProjectB acts like a Component Object Model (COM). For example when I add a method to ProjectB it will not show in other projects in the solution until I do a 'Rebuild all'then the method shows. ProjectA F12 goes to code, ProjectB F12 goes to Object Browser. To fix this Object Browser issue, I found a macro that should take me to the code defintion, it does in ProjectA, but in ProjectB I get an error: "error hresult e_fail has been returned from a call to a com component", which proves the problem is ProjectB is seen as a COM. I've tried lots of stuff to fix this, search the web for over a day and tried everything out there, but can't seem to get it working properly. By the way I am using VS2005. Developing in VB.NET.
Thanks in advance for any help you can offer
--More information--
Here is a list of things I tried:
Rebuild / clean Solution, Run Devenv.exe to reset VS to startup, Project 'Add Reference'Delete ProjectB, exit VS, delete *.pdb, start VS, clean/build solution, add project as 'Existing Project'
- Přesunutý Carl Daniel 13. dubna 2012 16:26 Off-topic in .NET BCL (From:.NET Base Class Library)
- Upravený CodeVB 13. dubna 2012 18:21
Všechny reakce
-
16. dubna 2012 7:04Moderátor
Hi CodeVB,
Welcome to the MSDN Forum.
Based on your description, it seems that it is related to the macro, so what is the macro? How do you use this macro? And how does the exception throw? When you debug your application? Or when you execute the macro? And where do you execute the macro?
Best regards,
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.