Skip to content

Commit

Permalink
Support showing COM references in the object browser
Browse files Browse the repository at this point in the history
  • Loading branch information
drewnoakes committed Nov 27, 2024
1 parent 0cc24dd commit 32b7a4f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@
<Group guid="guidSHLMainMenu" id="IDG_VS_CTXT_ITEM_OBJECTBROWSER" priority="0x0100">
<Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_TRANSITIVE_ASSEMBLY_REFERENCE"/>
</Group>
<!-- Group added to transitive COM references -->
<Group guid="guidSHLMainMenu" id="IDG_VS_CTXT_ITEM_OBJECTBROWSER" priority="0x0100">
<Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_COMREFERENCE"/>
</Group>
<!-- Group added to transitive project references -->
<Group guid="guidSHLMainMenu" id="IDG_VS_CTXT_ITEM_OBJECTBROWSER" priority="0x0100">
<Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_PROJECTREFERENCE"/>
Expand Down Expand Up @@ -260,6 +264,7 @@
</GuidSymbol>

<GuidSymbol name="guidSHLMainMenu" value="{ 0xd309f791, 0x903f, 0x11d0, { 0x9e, 0xfc, 0x00, 0xa0, 0xc9, 0x11, 0x00, 0x4f } }">
<IDSymbol name="IDM_VS_CTXT_COMREFERENCE" value="0x04A5" />
<IDSymbol name="IDG_VS_CTXT_ITEM_OBJECTBROWSER" value="0x02F6" />
<IDSymbol name="IDM_VS_CTXT_PROJECTREFERENCE" value="0x04A7"/>
<IDSymbol name="IDM_VS_CTXT_SHAREDPROJECTREFERENCE" value="0x04A8" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@
ReadOnly="True"
Visible="False">
<StringProperty.DataSource>
<DataSource ItemType="COMReference"
PersistedName="Identity"
Persistence="Intrinsic"
<DataSource PersistedName="Identity"
SourceOfDefaultValue="AfterContext" />
</StringProperty.DataSource>
</StringProperty>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ internal sealed class ComDependencyFactory : MSBuildDependencyFactoryBase
public const string AppliesTo = ProjectCapability.DependenciesTree + " & " + ProjectCapabilities.ComReferences;

private static readonly DependencyFlagCache s_flagCache = new(
resolved: DependencyTreeFlags.ComDependency + DependencyTreeFlags.SupportsBrowse,
unresolved: DependencyTreeFlags.ComDependency);
resolved: DependencyTreeFlags.ComDependency + DependencyTreeFlags.SupportsObjectBrowser + DependencyTreeFlags.SupportsBrowse,
unresolved: DependencyTreeFlags.ComDependency + DependencyTreeFlags.SupportsObjectBrowser);

public override DependencyGroupType DependencyGroupType => DependencyGroupTypes.Com;

Expand Down

0 comments on commit 32b7a4f

Please sign in to comment.