none
How do I add a custom reference to the Visual Studio macros?

    Question

  • How do I add a custom reference to the Visual Studio macros?

    When I right click on "References" and click "Add References...", it only shows an already populated list of .NET references. It does not let me browse for an assembly that I have created.

    Let me irriterate that I am refering to the Visual Studio Marco IDE (the one that pops up when you edit a macro, which is different). I can add references without problems to non-macro projects.

    Thursday, August 03, 2006 1:46 AM

Answers

  • For VS 2005 (VS 8) you need to copy your custom reference to the folder:

    C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies

    Once there, it will show up in the References dialog.

     

    Thursday, August 03, 2006 6:10 AM

All replies

  • For VS 2005 (VS 8) you need to copy your custom reference to the folder:

    C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies

    Once there, it will show up in the References dialog.

     

    Thursday, August 03, 2006 6:10 AM
  • Hi Carlos!

     Carlos J. Quintero wrote:
    ...Once there, it will show up in the References dialog. 

    Maybe you can give me an advice how to add custom tab into Add References dialog?

    As I investigated my tab should be registered  here HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0Exp\ComponentPickerPages as other standard tabs. And also I have to inherit my tab from IVsComponentSelectorProvider.

    I implemented ProvideComponentPickerPageAttribute inherited from RegistrationAttribute which is writes information about my tab into the registry. But when I run my package and open Add References dialog - I see my tab but without any child controls - there is only 'Error Loading Page' text in my tab.

     

    Thursday, August 03, 2006 9:22 AM
  • Thanks, I'll try that.

    Why is it that I have to copy my assembly to there? Will VS crash if the assembly referenced is not present?

    Friday, August 04, 2006 3:11 AM
  • I don´t know but this is how it was designed, all the references must be present in that folder.
    Friday, August 04, 2006 8:44 AM
  • Hi Carlos,

    What about my question - is it possible to add a custom tab into the Add Reference dialog?

    Thanks

    Friday, August 11, 2006 3:18 PM
  • Hi,

    Sorry, I have no idea about that. Take a look at the VS 2005 SDK to see if there is something there.

    Saturday, August 12, 2006 3:33 PM
  • Hi,

    I did it already... Unfortunatelly nothing about how to do it using MPF

    Thank you anyway

    Monday, August 14, 2006 7:49 AM
  •  Carlos J. Quintero wrote:

    For VS 2005 (VS 8) you need to copy your custom reference to the folder:

    C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies

    Once there, it will show up in the References dialog.

     

    This worked exactly as you said it did. Thanks for the help.

    Sunday, August 20, 2006 7:54 PM