File tree Expand file tree Collapse file tree 6 files changed +49
-28
lines changed Expand file tree Collapse file tree 6 files changed +49
-28
lines changed Original file line number Diff line number Diff line change 3
3
<ManagePackageVersionsCentrally >true</ManagePackageVersionsCentrally >
4
4
</PropertyGroup >
5
5
<ItemGroup >
6
+ <PackageVersion Include =" CopyPluginsToPublishDirectory" Version =" 1.0.0" />
6
7
<PackageVersion Include =" Microsoft.Extensions.Logging.Console" Version =" 6.0.0" />
7
8
<PackageVersion Include =" Microsoft.Extensions.Configuration.Abstractions" Version =" 6.0.0" />
8
9
<PackageVersion Include =" Microsoft.Extensions.DependencyInjection.Abstractions" Version =" 6.0.0" />
Original file line number Diff line number Diff line change 6
6
7
7
<ItemGroup >
8
8
<PackageReference Include =" DotEnv.Core" />
9
+ <PackageReference Include =" CopyPluginsToPublishDirectory" />
9
10
</ItemGroup >
10
11
11
12
<ItemGroup >
12
13
<ProjectReference Include =" ..\..\..\src\Core\CPlugin.Net.csproj" />
13
14
<ProjectReference Include =" ..\..\Contracts\Example.Contracts.csproj" />
14
15
</ItemGroup >
15
16
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
-
30
17
</Project >
Original file line number Diff line number Diff line change 8
8
<PackageReference Include =" Microsoft.AspNetCore.OpenApi" />
9
9
<PackageReference Include =" Swashbuckle.AspNetCore" />
10
10
<PackageReference Include =" SimpleResults.AspNetCore" />
11
+ <PackageReference Include =" CopyPluginsToPublishDirectory" />
11
12
</ItemGroup >
12
13
13
14
<ItemGroup >
16
17
<ProjectReference Include =" ..\..\SharedEntities\Example.SharedEntities.csproj" />
17
18
</ItemGroup >
18
19
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
-
33
20
</Project >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <package xmlns =" http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" >
3
+ <metadata >
4
+ <id >CopyPluginsToPublishDirectory</id >
5
+ <version >1.0.0</version >
6
+ <authors >Dave Roman</authors >
7
+ <owners >Dave Roman</owners >
8
+ <projectUrl >https://github.com/MrDave1999/CPlugin.Net</projectUrl >
9
+ <license type =" expression" >MIT</license >
10
+ <readme >README.md</readme >
11
+ <icon >plugin-icon-nuget.png</icon >
12
+ <requireLicenseAcceptance >false</requireLicenseAcceptance >
13
+ <description >
14
+ A simple package that allows to copy the plugins directory from the output directory to the publish directory
15
+ </description >
16
+ <releaseNotes ></releaseNotes >
17
+ <copyright >Copyright (c) Dave Roman</copyright >
18
+ <tags >targets target plugins addons plugin plugin-architecture</tags >
19
+ </metadata >
20
+
21
+ <files >
22
+ <file src =" README.md" target =" " />
23
+ <file src =" ..\plugin-icon-nuget.png" target =" " />
24
+ <file src =" build\**" target =" build" />
25
+ </files >
26
+ </package >
Original file line number Diff line number Diff line change
1
+ ## About
2
+
3
+ A simple package that allows to copy the plugins directory from the output directory (e.g. bin/Debug/net8.0) to the publish directory.
Original file line number Diff line number Diff line change
1
+ <Project >
2
+
3
+ <ItemGroup >
4
+ <!--
5
+ Copy the plugins directory to the publish directory.
6
+ This copies the directories and subdirectories (including files with extension)
7
+ from the plugins folder to the publish directory.
8
+ For this to work, the plugins must be compiled.
9
+ -->
10
+ <Content
11
+ Include =" bin\$(Configuration)\$(TargetFramework)\plugins\**"
12
+ CopyToPublishDirectory =" PreserveNewest"
13
+ TargetPath =" plugins\%(RecursiveDir)\%(Filename)%(Extension)"
14
+ />
15
+ </ItemGroup >
16
+
17
+ </Project >
You can’t perform that action at this time.
0 commit comments