From 5fcfe4c3da595580b0d567937a4d4084232dafa9 Mon Sep 17 00:00:00 2001 From: Dave Roman <43916038+MrDave1999@users.noreply.github.com> Date: Sun, 14 Jan 2024 14:34:01 -0500 Subject: [PATCH] feat: Copy plugins to publish directory (#30) --- Directory.Packages.props | 1 + .../ConsoleApp/Example.HostConsoleApp.csproj | 15 +---------- .../WebApi/Example.HostWebApi.csproj | 15 +---------- targets/CopyPluginsToPublishDirectory.nuspec | 26 +++++++++++++++++++ targets/README.md | 3 +++ .../CopyPluginsToPublishDirectory.targets | 17 ++++++++++++ 6 files changed, 49 insertions(+), 28 deletions(-) create mode 100644 targets/CopyPluginsToPublishDirectory.nuspec create mode 100644 targets/README.md create mode 100644 targets/build/CopyPluginsToPublishDirectory.targets diff --git a/Directory.Packages.props b/Directory.Packages.props index 4c0f6c6..f28540d 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -3,6 +3,7 @@ true + diff --git a/samples/HostApplications/ConsoleApp/Example.HostConsoleApp.csproj b/samples/HostApplications/ConsoleApp/Example.HostConsoleApp.csproj index 674dc37..624312d 100644 --- a/samples/HostApplications/ConsoleApp/Example.HostConsoleApp.csproj +++ b/samples/HostApplications/ConsoleApp/Example.HostConsoleApp.csproj @@ -6,6 +6,7 @@ + @@ -13,18 +14,4 @@ - - - - - diff --git a/samples/HostApplications/WebApi/Example.HostWebApi.csproj b/samples/HostApplications/WebApi/Example.HostWebApi.csproj index 48f00c8..608a0e4 100644 --- a/samples/HostApplications/WebApi/Example.HostWebApi.csproj +++ b/samples/HostApplications/WebApi/Example.HostWebApi.csproj @@ -8,6 +8,7 @@ + @@ -16,18 +17,4 @@ - - - - - diff --git a/targets/CopyPluginsToPublishDirectory.nuspec b/targets/CopyPluginsToPublishDirectory.nuspec new file mode 100644 index 0000000..e3d7d39 --- /dev/null +++ b/targets/CopyPluginsToPublishDirectory.nuspec @@ -0,0 +1,26 @@ + + + + CopyPluginsToPublishDirectory + 1.0.0 + Dave Roman + Dave Roman + https://github.com/MrDave1999/CPlugin.Net + MIT + README.md + plugin-icon-nuget.png + false + + A simple package that allows to copy the plugins directory from the output directory to the publish directory + + + Copyright (c) Dave Roman + targets target plugins addons plugin plugin-architecture + + + + + + + + \ No newline at end of file diff --git a/targets/README.md b/targets/README.md new file mode 100644 index 0000000..dfd9a88 --- /dev/null +++ b/targets/README.md @@ -0,0 +1,3 @@ +## About + +A simple package that allows to copy the plugins directory from the output directory (e.g. bin/Debug/net8.0) to the publish directory. \ No newline at end of file diff --git a/targets/build/CopyPluginsToPublishDirectory.targets b/targets/build/CopyPluginsToPublishDirectory.targets new file mode 100644 index 0000000..1895125 --- /dev/null +++ b/targets/build/CopyPluginsToPublishDirectory.targets @@ -0,0 +1,17 @@ + + + + + + + + \ No newline at end of file