Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>After a lot of trial and error I finally got it working. This <a href="http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/f56c1d35-7fc7-49ae-b52d-647fb3fa014d/#83d5481f-73f2-4a5e-9ebc-16d1c123d55c" rel="nofollow">url</a> pointed me in the right direction. </p> <p>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.</p> <p>The interface should look like this and all works fine:</p> <pre><code>[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; } } </code></pre> <p>Gr</p> <p>Martijn B</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload