Skip to content

Commit 43e7409

Browse files
committed
chore: Copy the plugins directory to the publish directory
1 parent 6de1d48 commit 43e7409

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

samples/HostApplications/ConsoleApp/Example.HostConsoleApp.csproj

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,18 @@
1313
<ProjectReference Include="..\..\Contracts\Example.Contracts.csproj" />
1414
</ItemGroup>
1515

16+
<ItemGroup>
17+
<!--
18+
Copy the plugins directory to the publish directory.
19+
This copies the directories and subdirectories (including files with extension)
20+
from the plugins folder to the publish directory.
21+
For this to work, the plug-ins must be compiled.
22+
-->
23+
<Content
24+
Include="bin\$(Configuration)\$(TargetFramework)\plugins\**"
25+
CopyToPublishDirectory="PreserveNewest"
26+
TargetPath="plugins\%(RecursiveDir)\%(Filename)%(Extension)"
27+
/>
28+
</ItemGroup>
29+
1630
</Project>

samples/HostApplications/WebApi/Example.HostWebApi.csproj

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,18 @@
1616
<ProjectReference Include="..\..\SharedEntities\Example.SharedEntities.csproj" />
1717
</ItemGroup>
1818

19+
<ItemGroup>
20+
<!--
21+
Copy the plugins directory to the publish directory.
22+
This copies the directories and subdirectories (including files with extension)
23+
from the plugins folder to the publish directory.
24+
For this to work, the plug-ins must be compiled.
25+
-->
26+
<Content
27+
Include="bin\$(Configuration)\$(TargetFramework)\plugins\**"
28+
CopyToPublishDirectory="PreserveNewest"
29+
TargetPath="plugins\%(RecursiveDir)\%(Filename)%(Extension)"
30+
/>
31+
</ItemGroup>
32+
1933
</Project>

0 commit comments

Comments
 (0)