-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Copy plugins to publish directory (#30)
- Loading branch information
1 parent
d3c518a
commit 5fcfe4c
Showing
6 changed files
with
49 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | ||
<metadata> | ||
<id>CopyPluginsToPublishDirectory</id> | ||
<version>1.0.0</version> | ||
<authors>Dave Roman</authors> | ||
<owners>Dave Roman</owners> | ||
<projectUrl>https://github.com/MrDave1999/CPlugin.Net</projectUrl> | ||
<license type="expression">MIT</license> | ||
<readme>README.md</readme> | ||
<icon>plugin-icon-nuget.png</icon> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description> | ||
A simple package that allows to copy the plugins directory from the output directory to the publish directory | ||
</description> | ||
<releaseNotes></releaseNotes> | ||
<copyright>Copyright (c) Dave Roman</copyright> | ||
<tags>targets target plugins addons plugin plugin-architecture</tags> | ||
</metadata> | ||
|
||
<files> | ||
<file src="README.md" target="" /> | ||
<file src="..\plugin-icon-nuget.png" target="" /> | ||
<file src="build\**" target="build" /> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<Project> | ||
|
||
<ItemGroup> | ||
<!-- | ||
Copy the plugins directory to the publish directory. | ||
This copies the directories and subdirectories (including files with extension) | ||
from the plugins folder to the publish directory. | ||
For this to work, the plugins must be compiled. | ||
--> | ||
<Content | ||
Include="bin\$(Configuration)\$(TargetFramework)\plugins\**" | ||
CopyToPublishDirectory="PreserveNewest" | ||
TargetPath="plugins\%(RecursiveDir)\%(Filename)%(Extension)" | ||
/> | ||
</ItemGroup> | ||
|
||
</Project> |