-
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.
- Loading branch information
Showing
22 changed files
with
1,750 additions
and
66 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
--- | ||
date: 2023-07-13T05:44:46.048Z | ||
date: 2023-07-13T05:44:46:00-05:00Z | ||
description: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files, yadda, yadda, yadda... | ||
keywords: | ||
- IP | ||
- copyright | ||
- license | ||
- mit | ||
- IP | ||
- copyright | ||
- license | ||
- mit | ||
permissions: | ||
- commercial-use | ||
- modifications | ||
- distribution | ||
- private-use | ||
- commercial-use | ||
- modifications | ||
- distribution | ||
- private-use | ||
conditions: | ||
- include-copyright | ||
liimitations: | ||
- liability | ||
- warranty | ||
lastmod: 2023-08-29T17:13:51.216Z | ||
- include-copyright | ||
limitations: | ||
- liability | ||
- warranty | ||
lastmod: 2024-01-0T00:39:00.0000+05:00Z | ||
license: MIT | ||
slug: mit-license | ||
title: MIT License | ||
|
@@ -25,7 +25,7 @@ type: license | |
|
||
# MIT License | ||
|
||
## Copyright © 2022-2023 [David G. Moore, Jr.](mailto:[email protected] "Send David an email") ([@dgmjr](https://github.com/dgmjr "Contact david on GitHub")), All Rights Reserved | ||
## Copyright © 2022-2024 [David G. Moore, Jr.](mailto:[email protected] "Send Dr. Moore") ([@dgmjr](https://github.com/dgmjr "Contact Dr. Moore on GitHub")), All Rights Reserved | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
|
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,10 @@ | ||
<Project> | ||
<ItemGroup> | ||
<PackageFile Remove="@(PackageFile->WithMetadataValue('PackagePath', 'README.md'))" /> | ||
<Content Remove="@(Content)" /> | ||
<None Remove="@(None)" /> | ||
<PackageFile Include="icon.png" PackagePath="icon.png" /> | ||
<PackageFile Include="./bin/Local/netstandard2.0/*.*" PackagePath="$(TargetFramework)/%(Filename)%(Extension)" /> | ||
<PackageFile Include="./Sdk/*.*" PackagePath="Sdk/%(Filename)%(Extension)" /> | ||
</ItemGroup> | ||
</Project> |
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,12 @@ | ||
<Project> | ||
<Target Name="PushAzure" DependsOnTargets="Pack;MinVer" Condition="'$(GeneratePackageOnBuild)' == 'true'"> | ||
<Exec Command="nuget search $(PackageId) -s Azure -noninteractive | grep $(PackageVersion)" IgnoreExitCode="true"> | ||
<Output TaskParameter="ConsoleOutput" PropertyName="PackageExists" /> | ||
</Exec> | ||
<Exec Command="echo 'Deleting package $(PackageId) $(PackageVersion) from Azure...';" IgnoreExitCode="true" | ||
Condition="'$(PackageExists)' != ''" /> | ||
<Exec Command="dotnet nuget delete $(PackageId) $(PackageVersion) -s Azure --non-interactive -k 'az'" IgnoreExitCode="true" | ||
Condition="'$(PackageExists)' != ''" /> | ||
<Exec Command="dotnet nuget push $(PackageTargetPath) -s Azure -k 'az' --skip-duplicate" Condition="Exists('$(PackageTargetPath)')" /> | ||
</Target> | ||
</Project> |
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,20 @@ | ||
<Project> | ||
<Target Name="PushFeedzio" AfterTargets="Pack" DependsOnTargets="Pack;GetPackageVersion" Condition="'$(GeneratePackageOnBuild)' == 'true' And '$(DesignTimeBuild)' != 'true' And ('$(Configuration)' == 'Local' Or $(InitialTargets.Contains('PushLocal')))"> | ||
<NuGetPush.Tasks.GetNuGetApiKey | ||
Source="Feedz.io" | ||
MSBuildProjectDirectory="$(MSBuildProjectDirectory)"> | ||
<Output TaskParameter="ApiKey" PropertyName="FEEDZ_IO_API_KEY" /> | ||
</NuGetPush.Tasks.GetNuGetApiKey> | ||
<!-- <Message Text="FEEDZ_IO_API_KEY: $(FEEDZ_IO_API_KEY)" Importance="high" /> --> | ||
<Exec Command="dotnet nuget delete $(PackageId) $(PackageVersion) -s Feedz.io --non-interactive -k:$(FEEDZ_IO_API_KEY)" ContinueOnError="true" IgnoreExitCode="true" /> | ||
<Exec Command="dotnet nuget push $(PackageTargetPath) -s Feedz.io --skip-duplicate -k:$(FEEDZ_IO_API_KEY)" Condition="Exists('$(PackageTargetPath)')" IgnoreExitCode="true" /> | ||
<!-- <Warning Text="Deleting package $(PackageId), version $(PackageVersion) from Feedz.io and pushing a new version..." /> | ||
<NuGetPush.Tasks.DeleteAndPush | ||
Source="Feedz.io" | ||
MSBuildProjectDirectory="$(MSBuildProjectDirectory)" | ||
ApiKey="$(FEEDZ_IO_API_KEY)" | ||
PackageId="$(PackageId)" | ||
Version="$(PackageVersion)" | ||
PackagePath="$(PackageTargetPath)" /> --> | ||
</Target> | ||
</Project> |
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> | ||
<Target Name="EnsureGitHubToken" DependsOnTargets="Pack;MinVer" Condition="'$(GeneratePackageOnBuild)' == 'true'"> | ||
<Exec Command="gh auth token" ConsoleToMSBuild="true" IgnoreExitCode="true"> | ||
<Output TaskParameter="ConsoleOutput" PropertyName="GitHubAuthToken" /> | ||
</Exec> | ||
<Error Condition="'$(GitHubAuthToken)' == '' Or '$(GitHubAuthToken)' == 'undefined'" Text="You must first set the GitHub auth token by running 'gh auth login'" Code="GHPUSH001" HelpLink="https://cli.github.com/manual/gh_auth_login" /> | ||
</Target> | ||
|
||
<Target Name="PushGitHub" DependsOnTargets="EnsureGitHubToken" Condition="'$(GeneratePackageOnBuild)' == 'true'"> | ||
<PropertyGroup> | ||
<DeleteGitHubPackageVersionScript>$(DeleteGitHubPackageVersionScriptName) --org "dgmjr-io" -i "$(PackageId)" -v "$(PackageVersion)" --t nuget --token "$(GitHubAuthToken)"</DeleteGitHubPackageVersionScript> | ||
</PropertyGroup> | ||
<Message Text="echo 'DeleteGitHubPackageVersionScript: $(DeleteGitHubPackageVersionScript)' " /> | ||
<Exec Command="$(DeleteGitHubPackageVersionScript)" ContinueOnError="true" IgnoreExitCode="true" /> | ||
<Exec Command="dotnet nuget push $(PackageTargetPath) -s GitHub -k $(GitHubAuthToken) --skip-duplicate" Condition="Exists('$(PackageTargetPath)')" IgnoreExitCode="true" /> | ||
</Target> | ||
</Project> |
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,14 @@ | ||
<Project> | ||
<Target Name="PushLocal" AfterTargets="Pack" DependsOnTargets="Pack;GetPackageVersion" Condition="'$(GeneratePackageOnBuild)' == 'true' And '$(DesignTimeBuild)' != 'true' And ('$(Configuration)' == 'Local' Or $(InitialTargets.Contains('PushLocal')))"> | ||
<Exec Command="dotnet nuget delete $(PackageId) $(PackageVersion) -s Local --non-interactive" ContinueOnError="true" IgnoreExitCode="true" /> | ||
<Exec Command="dotnet nuget push $(PackageTargetPath) -s Local --skip-duplicate" Condition="Exists('$(PackageTargetPath)')" IgnoreExitCode="true" /> | ||
<!-- <NuGetPush.Tasks.DeleteAndPush | ||
Source="Local" | ||
MSBuildProjectDirectory="$(MSBuildProjectDirectory)" | ||
ApiKey="" | ||
PackageId="$(PackageId)" | ||
Version="$(PackageVersion)" | ||
PackagePath="$(PackageTargetPath)" /> --> | ||
</Target> | ||
</Project> | ||
|
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,9 @@ | ||
<Project> | ||
<Target Name="PushProGet" DependsOnTargets="Pack;MinVer" Condition="'$(GeneratePackageOnBuild)' == 'true'"> | ||
<Exec Command="echo 'Deleting package $(PackageId) $(PackageVersion) from ProGet...';" IgnoreExitCode="true" | ||
Condition="'$(PackageExists)' != ''" /> | ||
<Exec Command="dotnet nuget delete $(PackageId) $(PackageVersion) -s ProGet --non-interactive -k '$env:PROGET_API_KEY'" IgnoreExitCode="true" | ||
Condition="'$(PackageExists)' != ''" /> | ||
<Exec Command="pwsh -Command %22dotnet nuget push $(PackageTargetPath) -s ProGet -k '$env:PROGET_API_KEY' --skip-duplicate%22" Condition="Exists('$(PackageTargetPath)')" /> | ||
</Target> | ||
</Project> |
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,9 @@ | ||
<Project> | ||
<Target Name="PushProGetPrerelease" DependsOnTargets="Pack;MinVer" Condition="'$(GeneratePackageOnBuild)' == 'true' And false"> | ||
<Exec Command="echo 'Deleting package $(PackageId) $(PackageVersion) from ProGet...';" IgnoreExitCode="true" | ||
Condition="'$(PackageExists)' != ''" /> | ||
<Exec Command="dotnet nuget delete $(PackageId) $(PackageVersion) -s ProGetPrerelease --non-interactive -k '$env:PROGET_API_KEY'" IgnoreExitCode="true" | ||
Condition="'$(PackageExists)' != ''" /> | ||
<Exec Command="dotnet nuget push $(PackageTargetPath) -s ProGet -k '$env:PROGET_API_KEY' --skip-duplicate" Condition="Exists('$(PackageTargetPath)')" /> | ||
</Target> | ||
</Project> |
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,30 @@ | ||
namespace NuGetPush.Tasks; | ||
using MSBTask = Microsoft.Build.Utilities.Task; | ||
using NuGet.Configuration; | ||
using NuGet.Protocol; | ||
using System.Resources; | ||
|
||
using NuGetSettings = NuGet.Configuration.Settings; | ||
using Microsoft.Build.Framework; | ||
|
||
using NuGet.Commands; | ||
|
||
public class DeletePackage : NuGetTaskBase | ||
{ | ||
public DeletePackage(ResourceManager taskResources, string helpKeywordPrefix) : base(taskResources, helpKeywordPrefix) { } | ||
public DeletePackage() : base() { } | ||
|
||
[Required] | ||
public string PackageId { get; set; } | ||
|
||
[Required] | ||
public string Version { get; set; } | ||
|
||
public override bool Execute() | ||
{ | ||
// Logger.LogWarning($"Deleting {PackageId} version {Version} from source {Source}..."); | ||
DeleteRunner.Run(Settings, PackageSourceProvider, PackageId, Version, Source, ApiKey, true, false, (string s) => true, Logger); | ||
// Logger.LogWarning($"Done."); | ||
return true; | ||
} | ||
} |
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,28 @@ | ||
namespace NuGetPush.Tasks; | ||
using MSBTask = Microsoft.Build.Utilities.Task; | ||
using NuGet.Configuration; | ||
using NuGet.Protocol; | ||
using System.Resources; | ||
|
||
using NuGetSettings = NuGet.Configuration.Settings; | ||
using Microsoft.Build.Framework; | ||
|
||
using NuGet.Commands; | ||
|
||
public class DeleteAndPush : NuGetTaskBase | ||
{ | ||
[Required] | ||
public string PackageId { get; set; } | ||
[Required] | ||
public string PackagePath { get; set; } | ||
|
||
[Required] | ||
public string Version { get; set; } | ||
|
||
public override bool Execute() | ||
{ | ||
new DeletePackage(TaskResources, HelpKeywordPrefix) { Source = Source, ApiKey = this.ApiKey, PackageId = PackageId, Version = Version, MSBuildProjectDirectory = MSBuildProjectDirectory }.Execute(); | ||
new Push(TaskResources, HelpKeywordPrefix) { Source = Source, ApiKey = ApiKey, PackagePath = PackagePath, MSBuildProjectDirectory = MSBuildProjectDirectory }.Execute(); | ||
return true; | ||
} | ||
} |
Oops, something went wrong.