Skip to content

Commit

Permalink
Merge pull request #11 from sharwell/fix-6
Browse files Browse the repository at this point in the history
Add a dummy export to Tvl.VisualStudio.InheritanceMargin.Interfaces
  • Loading branch information
sharwell committed Aug 11, 2015
2 parents 51e50ec + 14c519c commit a4df001
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
namespace Tvl.VisualStudio.InheritanceMargin.Interfaces
{
using System.ComponentModel.Composition;

/// <summary>
/// This class exists for the sole purpose of working around issue
/// https://github.com/tunnelvisionlabs/InheritanceMargin/issues/6.
/// </summary>
/// <remarks>
/// <para>Applying the <see cref="ExportAttribute"/> is required for the affected version(s) of Visual Studio to
/// place this interfaces assembly in the MEF cache.</para>
/// </remarks>
[Export]
internal class MefBindingWorkaround
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
<Compile Include="IInheritanceTarget.cs" />
<Compile Include="InheritanceGlyph.cs" />
<Compile Include="InheritanceParseResultEventArgs.cs" />
<Compile Include="MefBindingWorkaround.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

<Content>
<MefComponent>|%CurrentProject%|</MefComponent>
<MefComponent>|Tvl.VisualStudio.InheritanceMargin.Interfaces|</MefComponent>
<VsPackage>|%CurrentProject%|</VsPackage>
</Content>

Expand Down

0 comments on commit a4df001

Please sign in to comment.