Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5928731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:19:36+00:00 2026-05-22T14:19:36+00:00

I am writing a plugin for Visual Studio, I am able to see all

  • 0

I am writing a plugin for Visual Studio, I am able to see all the properties of all the references for a project, except for one property.

How can I access the “Embed Interop Types” property of a reference programmatically?

Right now I am using the VSLangProj80.Reference3 class to get the properties, but it does not include the “Embed Interop Types” property.

I have found a reference to a Microsoft internal use enumeration, VsProjReferencePropId100.DISPID_Reference_EmbedInteropTypes, but don’t know how to use it to find the information I am looking for.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T14:19:36+00:00Added an answer on May 22, 2026 at 2:19 pm

    After a lot of trial and error I finally got it working. This url pointed me in the right direction.

    In short. VsLangProj100.dll does not include a Reference4 interface, the new interface which should contain the EmbedInteropTypes property. The solution is to make the interface yourself. In order to do this you have to know the GUID of the interface, properties, access specifiers and dispatch id’s. You can check this using the OLE/COM Object Viewer.

    The interface should look like this and all works fine:

    [Guid("F71B6036-80F1-4F08-BC59-B5D92865F629")]
    public interface Reference4
    {        
        // Reference        
        [DispId(1)] DTE DTE { get; }        
        [DispId(2)] References Collection { get; }        
        [DispId(3)] Project ContainingProject { get; }        
        [DispId(4)] void Remove();        
        [DispId(5)] string Name { get; }        
        [DispId(6)] prjReferenceType Type { get; }        
        [DispId(7)] string Identity { get; }        
        [DispId(8)] string Path { get; }        
        [DispId(9)] string Description { get; }        
        [DispId(10)] string Culture { get; }        
        [DispId(11)] int MajorVersion { get; }        
        [DispId(12)] int MinorVersion { get; }        
        [DispId(13)] int RevisionNumber { get; }        
        [DispId(14)] int BuildNumber { get; }        
        [DispId(15)] bool StrongName { get; }       
        [DispId(16)] Project SourceProject { get; }        
        [DispId(17)] bool CopyLocal { get; set; }        
        [DispId(18), TypeLibFunc(1088)] dynamic get_Extender(string ExtenderName);        
        [DispId(19)] dynamic ExtenderNames { get; }        
        [DispId(20)] string ExtenderCATID { get; }        
        [DispId(21)] string PublicKeyToken { get; }        
        [DispId(22)] string Version { get; }         
        // Reference2        
        [DispId(100)]string RuntimeVersion { get; }         
        // Reference3       
        [DispId(120)] bool SpecificVersion { get; set; }        
        [DispId(121)] string SubType { get; set; }        
        [DispId(122)] bool Isolated { get; set; }       
        [DispId(123)] string Aliases { get; set; }        
        [DispId(124)] uint RefType { get; }       
        [DispId(125)] bool AutoReferenced { get; }     
        [DispId(126)] bool Resolved { get; }        
        // Reference4       
        [DispId(127)] bool EmbedInteropTypes { get; set; }    
    }
    

    Gr

    Martijn B

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for resources on writing a visual studio 2008/2010 plugin, preferably a book
I use Vim and Vim plugins for Visual Studio when writing C++. Often, I
I'm writing a plugin that's modifying an existing UI. One thing I want to
How can I start writing a plugin for Eclipse ? I've looked for documentation,
I am writing a vim plugin in which i need to determine all those
I'm writing a lot of javascript code in my visual studio projects. I would
I'm writing some HBO for Internet Explorer in Visual Studio 2010. On my development
I am currently writing a plugin for a game where one feature includes the
i'm writing a plugin for Eclipse and i would like to attach one of
So i'm writing a plugin for wordpress and one of the pages has information

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.