I am writing a plugin for Visual Studio, I am able to see all the properties of all references to a project. For properties.
How can I use the "Embed Interop Type" property of a reference program?
I am currently using VSLangProj80. Reference to get 3 square attributes, but does not include "Embed Interop Type" property.
I've got a reference to a Microsoft internal use enumeration, VsProjReferencePropId100.DISPID_Reference_EmbedInteropTypes, but looking for information how to use it, I'm looking for.
After a lot of litigation and error, I finally had to work. It told me in the right direction.
In brief, the Reference4 interface is not included in VsLangProj100.dll, the new interface should contain the EmbedIntopap property. The solution is to create the interface itself. To do this, you need to know about the interface, properties, access specifiers and the Dispatch ID. You can see it using the OLE / COM object viewer.
The interface should look like this and all the work is fine:
[Guid ("F71B6036-80F1-4F08- BC59-B5D92865F629")] Public Interface Reference 4 {/ / Reference [DispId (1)] DTE {Received DTE; } [DispId (2)] collection archive {get; } [DispId (3)] Project Containing Project {get; } [DispId (4)] Remove zero (); [DispId (5)] string name {get; } [DispId (6)] prjReference type type {get; } [DispId (7)] string recognition {received; } [DispId (8)] string path {get; } [DispId (9)] String Description {get; } [DispId (10)] String Culture {Received; } [DispId (11)] int MajorVersion {get; } [DispId (12)] Int Minervarion {Received; } [DispId (13)] Intimate Number {get; } [Dispaid (14)] Entbuilder {Received; } [DISPIDE (15)] Bull StrongName {Received; } [DispId (16)] Project Source Project {get; } [DispId (17)] Child Copilokal {Received; Set; } [DispId (18), Typfibank (1088)] dynamic get_Extender (string extenderName); [DispId (19)] Dynamic ExtenderNames {get; } [DispId (20)] String Extender Cated {Get; } [DispId (21)] String PublicKeyToken {get; } [DispId (22)] string version {get; } // Reference 2 [DispId (100)] String Runtime Version {Receive; } // context 3 [DispId (120)] bool specific warsons {get; Set; } [DispId (121)] string subtype {get; Set; } [DispId (122)] bool isolated {get; Set; } [DispId (123)] string nickname {get; Set; } [DispId (124)] UIT Ref: {get; } [DispId (125)] Bull Autonfords {get; } [DispId (126)] solution for bool {get; } // Reference 4 [DispId (127)] bool EmbedInteropTypes {get; Set; }}
gr
martins b
Comments
Post a Comment