diff options
Diffstat (limited to 'third-party/DotNetCorePlugins')
-rw-r--r-- | third-party/DotNetCorePlugins/LICENSE (renamed from third-party/DotNetCorePlugins/LICENSE.txt) | 0 | ||||
-rw-r--r-- | third-party/DotNetCorePlugins/Taskfile.yaml | 49 | ||||
-rw-r--r-- | third-party/DotNetCorePlugins/src/McMaster.NETCore.Plugins.csproj | 23 |
3 files changed, 66 insertions, 6 deletions
diff --git a/third-party/DotNetCorePlugins/LICENSE.txt b/third-party/DotNetCorePlugins/LICENSE index c383288..c383288 100644 --- a/third-party/DotNetCorePlugins/LICENSE.txt +++ b/third-party/DotNetCorePlugins/LICENSE diff --git a/third-party/DotNetCorePlugins/Taskfile.yaml b/third-party/DotNetCorePlugins/Taskfile.yaml new file mode 100644 index 0000000..99839dc --- /dev/null +++ b/third-party/DotNetCorePlugins/Taskfile.yaml @@ -0,0 +1,49 @@ +# https://taskfile.dev + +#Called by the vnbuild system to produce builds for my website +#https://www.vaughnnugent.com/resources/software + +# Taskfile specific to DotNetCorePlugins project +# currently this taskfile only packs up the source code +# and test source code into a source code tgz file for +# distribution. The changes file and license file are also +# included + +version: '3' + +tasks: + + #when build succeeds, archive the output into a tgz + postbuild_success: + dir: '{{.USER_WORKING_DIR}}' + cmds: + - task: pack_source + + pack_source: + internal: true + dir: '{{ .USER_WORKING_DIR }}' + vars: + EXCLUDES: + --exclude='bin/*' + --exclude='obj/*' + #--exclude='.tarignore' + INCLUDES: + src/* + test/* + CHANGES.md + LICENSE + Taskfile.yaml + README.md + + cmds: + #pack up source code and put in output + - cmd: cd .. && tar {{ .EXCLUDES }} -czf '{{ .USER_WORKING_DIR }}/bin/src.tgz' {{ .INCLUDES }} + + +#Remove the output dirs on clean + clean: + dir: '{{.USER_WORKING_DIR}}' + ignore_error: true + cmds: + - for: [ bin/, obj/ ] + cmd: powershell -Command "rm -Recurse -Force '{{.ITEM}}'" diff --git a/third-party/DotNetCorePlugins/src/McMaster.NETCore.Plugins.csproj b/third-party/DotNetCorePlugins/src/McMaster.NETCore.Plugins.csproj index dcb24e7..03acbbc 100644 --- a/third-party/DotNetCorePlugins/src/McMaster.NETCore.Plugins.csproj +++ b/third-party/DotNetCorePlugins/src/McMaster.NETCore.Plugins.csproj @@ -1,16 +1,12 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFrameworks>net8.0</TargetFrameworks> + <TargetFramework>net8.0</TargetFramework> <OutputType>library</OutputType> <Nullable>enable</Nullable> <IsPublishable>False</IsPublishable> <GenerateDocumentationFile>true</GenerateDocumentationFile> - <PackageDescription>Provides API for dynamically loading assemblies into a .NET application. - -This package should be used by the host application which needs to load plugins. -See https://github.com/natemcmaster/DotNetCorePlugins/blob/main/README.md for more samples and documentation. - </PackageDescription> + <PackageDescription>Provides API for dynamically loading assemblies into a .NET application. This package should be used by the host application which needs to load plugins. See https://github.com/natemcmaster/DotNetCorePlugins/blob/main/README.md for more samples and documentation.</PackageDescription> <PackageTags>.NET Core;plugins</PackageTags> </PropertyGroup> @@ -23,4 +19,19 @@ See https://github.com/natemcmaster/DotNetCorePlugins/blob/main/README.md for mo <ProjectReference Include="..\..\..\lib\Utils\src\VNLib.Utils.csproj" /> </ItemGroup> + <ItemGroup> + <None Include="..\README.md"> + <Pack>False</Pack> + <PackagePath>\</PackagePath> + </None> + <None Include="..\LICENSE"> + <Pack>True</Pack> + <PackagePath>\</PackagePath> + <CopyToOutputDirectory>Always</CopyToOutputDirectory> + </None> + <None Include="..\Taskfile.yaml"> + <Pack>False</Pack> + </None> + </ItemGroup> + </Project> |