Skip to content

Commit 9647cce

Browse files
authored
Embed interop types for Powerpoint, fixes #38 (#39)
1 parent 2a7fc30 commit 9647cce

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

WordsLive.Slideshow.Powerpoint.Bridge/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
using System.Reflection;
22
using System.Runtime.InteropServices;
33

4+
// Siehe auch Target "EmbedInteropTypes"
5+
[assembly: ImportedFromTypeLib("Microsoft.Office.Interop.PowerPoint")]
6+
47
// Allgemeine Informationen über eine Assembly werden über die folgenden
58
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
69
// die mit einer Assembly verknüpft sind.

WordsLive.Slideshow.Powerpoint.Bridge/WordsLive.Slideshow.Powerpoint.Bridge.csproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,11 @@
8787
<Target Name="AfterBuild">
8888
</Target>
8989
-->
90+
<Target Name="EmbedInteropTypes" AfterTargets="ResolveReferences" BeforeTargets="FindReferenceAssembliesForReferences">
91+
<ItemGroup>
92+
<ReferencePath Condition=" '%(FileName)' == 'Microsoft.Office.Interop.PowerPoint' ">
93+
<EmbedInteropTypes>true</EmbedInteropTypes>
94+
</ReferencePath>
95+
</ItemGroup>
96+
</Target>
9097
</Project>

0 commit comments

Comments
 (0)