Skip to content

Commit 8e66c7c

Browse files
AaronRobinsonMSFTnguerrera
authored andcommitted
Include the generated COM wrappers during the publish step (#4038)
1 parent feeb060 commit 8e66c7c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Publish.targets

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,12 @@ Copyright (c) .NET Foundation. All rights reserved.
442442
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
443443
</ResolvedFileToPublish>
444444

445+
<!-- Copy generated COM References. -->
446+
<ResolvedFileToPublish Include="@(ReferenceComWrappersToCopyLocal)">
447+
<RelativePath>@(ReferenceComWrappersToCopyLocal->'%(Filename)%(Extension)')</RelativePath>
448+
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
449+
</ResolvedFileToPublish>
450+
445451
<!-- Copy the resolved copy local publish assets. -->
446452
<ResolvedFileToPublish Include="@(_ResolvedCopyLocalPublishAssets)">
447453
<RelativePath>%(_ResolvedCopyLocalPublishAssets.DestinationSubDirectory)%(Filename)%(Extension)</RelativePath>

0 commit comments

Comments
 (0)