Skip to content

Commit

Permalink
Making this dynamic and based on the NuGet.config file!
Browse files Browse the repository at this point in the history
  • Loading branch information
dgmjr committed Aug 7, 2024
1 parent 0674226 commit a599016
Show file tree
Hide file tree
Showing 31 changed files with 993 additions and 1,424 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -1154,3 +1154,6 @@ $RECYCLE.BIN/
*site/*
js/
.npmrc

lib/
nupkg/
34 changes: 27 additions & 7 deletions NuGetPush.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="./Sdk/Sdk.props" />
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<TargetFramework>net8.0</TargetFramework>
<TargetFrameworks>net8.0</TargetFrameworks>
<Description>This is a simple MSBuild task that allows you to push a NuGet package to a NuGet server.</Description>
<MinVerTagPrefix>v</MinVerTagPrefix>
<GitHubOrg>dgmjr-io</GitHubOrg>
Expand All @@ -23,23 +23,40 @@
<ProjectGuid>2498EED9-9158-41BD-9D4A-246A70A1D9E2</ProjectGuid>
<EmitNuspec>true</EmitNuspec>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<OutputPath>lib/</OutputPath>
<PackageOutputPath>nupkg/</PackageOutputPath>
<PushLocalIsEnabled>true</PushLocalIsEnabled>
<PushFaGetIsEnabled>true</PushFaGetIsEnabled>
</PropertyGroup>
<ItemGroup>
<PackageFile Include="./Sdk/*" PackagePath="Sdk/%(Filename)%(Extension)" />
<PackageFile Include="./Targets/**/*" PackagePath="Targets/%(Filename)%(Extension)" />
<PackageFile Include="./Scripts/**/*" PackagePath="Scripts/%(RecursiveDir)%(Filename)%(Extension)" />
<PackageFile Include="$(OutputPath)$(TargetFramework)/*.*" PackagePath="lib/%(Filename)%(Extension)" />
<PackageFile Include="$(OutputPath)/*.*" PackagePath="lib/%(Filename)%(Extension)" />
</ItemGroup>
<ItemGroup>
<PackageTag Include="GitHub" />
<PackageTag Include="GitHub-Packages" />
<PackageTag Include="NuGet" />
<PackageTag Include="Azure" />
<PackageTag Include="Azure-Artifacts" />
<PackageTag Include="Azure" />
<PackageTag Include="GitHub-Packages" />
<PackageTag Include="GitHub" />
<PackageTag Include="NuGet-Push" />
<PackageTag Include="NuGet" />
<PackageTag Include="Packaging" />
</ItemGroup>
<ItemGroup>
<Using Include="Microsoft.Build.Framework" />
<Using Include="Microsoft.Build.Utilities.Task" Alias="MSBTask" />
<Using Include="Microsoft.Build.Utilities" />
<Using Include="NuGet.Commands" />
<Using Include="NuGet.Common" />
<Using Include="NuGet.Configuration.Settings" Alias="NuGetSettings" />
<Using Include="NuGet.Configuration" />
<Using Include="NuGet.Protocol" />
<Using Include="System.IO" />
<Using Include="System.Resources" />
<Using Include="System.Threading.Tasks.Task" Alias="TTask" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="MSBuild.Usings" IncludeAssets="Build;BuildTransitive;BuildMultitargeting;Runtime;Compile" ExcludeAssets="ContentFiles;Native;Analyzers" PrivateAssets="None" />
<PackageReference Include="NuGet.Protocol" />
Expand All @@ -57,5 +74,8 @@
<Target Name="CleanJSOutput" AfterTargets="Clean">
<Delete Files="$(MSBuildThisFileDirectory)Scripts/js/*" />
</Target>
<Target Name="TestNuGetPush" AfterTargets="AfterBuild">
<MSBuild Projects="./TestTasks.csproj" />
</Target>
<Import Project="./Sdk/Sdk.targets" />
</Project>
55 changes: 55 additions & 0 deletions Scripts/Push.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
$nupkgRegex = "^(?:.*/)?(?<PackageId>.+)\.(?<Version>(?<Major>\d+)\.(?<Minor>\d+)\.(?<Build>\d+)(?:-(?<Prerelease>[\w.-]+))?)\.nupkg$"

function Get-PackageId {
[CmdletBinding()]
param (
[string]$PackagePath
)
process {
if ($PackagePath -match $nupkgRegex) {
return $matches["PackageId"]
}
else {
Write-Error "The package path does not match the expected pattern."
}
}
}

function Get-PackageVersion {
[CmdletBinding()]
param (
[string]$PackagePath
)
process {
if ($PackagePath -match $nupkgRegex) {
return $matches["Version"]
}
else {
Write-Error "The package path does not match the expected pattern."
}
}
}

function Push-Package {
[CmdletBinding()]
param(
[Parameter(Mandatory = $true)]
[string]$PackagePath,
[Parameter(Mandatory = $false)]
[string]$Source = "nuget.org",
[Parameter(Mandatory = $false)]
[string]$ApiKey
)
process {
if (-not $ApiKey) {
$ApiKey = $env:API_KEY
}
if (-not $ApiKey) {
throw "ApiKey is required"
}
yes | dotnet nuget delete Get-PackageId $PackagePath Get-PackageVersion $PackagePath --source $Source --api-key $ApiKey -y
dotnet nuget push $PackagePath --api-key $ApiKey --source $Source
}
}

Push-Package -PackagePath $args[0] -Source $args[1] -ApiKey $args[2]
55 changes: 55 additions & 0 deletions Scripts/push_package
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
#!/bin/bash

# Define the regex pattern for .nupkg files
nupkgRegex='^(?:.*/)?(.+)\.([0-9]+\.[0-9]+\.[0-9]+(?:-[\w.-]+)?)\.nupkg$'

# Function to get the Package ID
function Get_PackageId {
local packagePath="$1"
if [[ $packagePath =~ $nupkgRegex ]]; then
echo "${BASH_REMATCH[1]}"
else
echo "The package path does not match the expected pattern." >&2
return 1
fi
}

# Function to get the Package Version
function Get_PackageVersion {
local packagePath="$1"
if [[ $packagePath =~ $nupkgRegex ]]; then
echo "${BASH_REMATCH[2]}"
else
echo "The package path does not match the expected pattern." >&2
return 1
fi
}

# Function to push the package
function Push_Package {
local packagePath="$1"
local source="${2:-nuget.org}"
local apiKey="${3:-$API_KEY}"

if [ -z "$apiKey" ]; then
echo "ApiKey is required" >&2
return 1
fi

local packageId
local packageVersion

packageId=$(Get_PackageId "$packagePath")
if [ $? -ne 0 ]; then
return 1
fi
packageVersion=$(Get_PackageVersion "$packagePath")
if [ $? -ne 0 ]; then
return 1
fi

yes | dotnet nuget delete "$packageId" "$packageVersion" --source "$source" --api-key "$apiKey" -y
dotnet nuget push "$packagePath" --api-key "$apiKey" --source "$source"
}

Push_Package "$1" "$2" "$3"
36 changes: 23 additions & 13 deletions Sdk/Sdk.props
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
<!--
* Sdk.props
*
* Created: 2022-11-27-05:39:27
* Modified: 2022-12-05-04:12:36
*
* Author: David G. Moore, Jr. <[email protected]>
*
* Copyright © 2022-2023 David G. Moore, Jr., All Rights Reserved
* License: MIT (https://opensource.org/licenses/MIT)
* Created: 2023-02-25T23:13:13-05:00
* Modified: 2024-08-03T17:43:22-04:00
* Author: David G. Moore, Jr. <[email protected]>
* Copyright: © 2022 - 2024 David G. Moore, Jr., All Rights Reserved
* License: MIT (https://opensource.org/licenses/MIT)
-->

<Project>
Expand All @@ -21,10 +18,23 @@
<GitHubOrg />
<!-- <NuGetPushDll Condition="'$(MSBuildProjectName)' == 'NuGetPush'">$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)../bin/Local/netstandard2.0/NuGetPush.dll'))</NuGetPushDll>
<NuGetPushDll Condition="'$(MSBuildProjectName)' != 'NuGetPush'">$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)../lib/netstandard2.0/NuGetPush.dll'))</NuGetPushDll> -->
<NuGetPushDll>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)../lib/netstandard2.0/NuGetPush.dll'))</NuGetPushDll>
<NuGetPushDll Condition="'$(NuGetPushDll)' == ''">$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)../lib/NuGetPush.dll'))</NuGetPushDll>
</PropertyGroup>
<PropertyGroup>
<NuGetPushAzureArtifactsIsEnabled Condition="'$(NuGetPushAzureArtifactsIsEnabled)' == ''">true</NuGetPushAzureArtifactsIsEnabled>
<NuGetPushFaGetIsEnabled Condition="'$(NuGetPushFaGetIsEnabled)' == ''">true</NuGetPushFaGetIsEnabled>
<NuGetPushLiGetIsEnabled Condition="'$(NuGetPushLiGetIsEnabled)' == ''">true</NuGetPushLiGetIsEnabled>
<NuGetPushGitHubIsEnabled Condition="'$(NuGetPushGitHubIsEnabled)' == ''">true</NuGetPushGitHubIsEnabled>
<NuGetPushLocalIsEnabled Condition="'$(NuGetPushLocalIsEnabled)' == ''">true</NuGetPushLocalIsEnabled>
</PropertyGroup>
<UsingTask TaskName="NuGetPush.Tasks.PushPackage" AssemblyFile="$(NuGetPushDll)" Condition="Exists($(NuGetPushDll))" />
<UsingTask TaskName="NuGetPush.Tasks.DeletePackage" AssemblyFile="$(NuGetPushDll)" Condition="Exists($(NuGetPushDll))" />
<UsingTask TaskName="NuGetPush.Tasks.DeleteAndPush" AssemblyFile="$(NuGetPushDll)" Condition="Exists($(NuGetPushDll))" />
<UsingTask TaskName="NuGetPush.Tasks.GetNuGetApiKey" AssemblyFile="$(NuGetPushDll)" Condition="Exists($(NuGetPushDll))" />
<UsingTask TaskName="NuGetPush.Tasks.GetNuGetSources" AssemblyFile="$(NuGetPushDll)" Condition="Exists($(NuGetPushDll))" />
<UsingTask TaskName="NuGetPush.Tasks.GenerateDynamicTargets" AssemblyFile="$(NuGetPushDll)" Condition="Exists($(NuGetPushDll))" />
<UsingTask TaskName="NuGetPush.Tasks.DetermineIfPackageExists" AssemblyFile="$(NuGetPushDll)" Condition="Exists($(NuGetPushDll))" />
<PropertyGroup>
<DynamicTargetsProjectFile Condition="'$(DynamicTargetsProjectFile)' == ''">$([MSBuild]::EnsureTrailingSlash($(MSBuildProjectDirectory)))$([MSBuild]::EnsureTrailingSlash($(IntermediateOutputPath)))NuGet.Dynamic.targets</DynamicTargetsProjectFile>
</PropertyGroup>
<UsingTask TaskName="NuGetPush.Tasks.Push" AssemblyFile="$(NuGetPushDll)" />
<UsingTask TaskName="NuGetPush.Tasks.DeletePackage" AssemblyFile="$(NuGetPushDll)" />
<UsingTask TaskName="NuGetPush.Tasks.DeleteAndPush" AssemblyFile="$(NuGetPushDll)" />
<UsingTask TaskName="NuGetPush.Tasks.GetNuGetApiKey" AssemblyFile="$(NuGetPushDll)" />
</Project>
16 changes: 7 additions & 9 deletions Sdk/Sdk.targets
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<!--
* Sdk.targets
*
* Created: 2022-11-27-05:39:27
* Modified: 2022-12-05-04:12:25
*
* Author: David G. Moore, Jr. <[email protected]>
*
* Copyright © 2022-2023 David G. Moore, Jr., All Rights Reserved
* License: MIT (https://opensource.org/licenses/MIT)
* Created: 2023-02-25T23:13:13-05:00
* Modified: 2024-08-03T17:43:14-04:00
* Author: David G. Moore, Jr. <[email protected]>
* Copyright: © 2022 - 2024 David G. Moore, Jr., All Rights Reserved
* License: MIT (https://opensource.org/licenses/MIT)
-->

<Project>
<Import Project="$(MSBuildThisFileDirectory)../Targets/*.targets" />
<Import Project="$(MSBuildThisFileDirectory)../Targets/Dynamic.targets" />
<Import Project="$(MSBuildThisFileDirectory)../Targets/PackageExists.targets" />
</Project>
34 changes: 34 additions & 0 deletions Targets/Dynamic.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!--
* Dynamic.targets
* Created: 2024-07-28T20:14:36-04:00
* Modified: 2024-07-28T20:14:37-04:00
* Author: David G. Moore, Jr. <[email protected]>
* Copyright: © 2022 - 2024 David G. Moore, Jr., All Rights Reserved
* License: MIT (https://opensource.org/licenses/MIT)
-->

<Project>
<UsingTask TaskName="NuGetPush.Tasks.GenerateDynamicTargets" AssemblyFile="$(NuGetPushDll)" Condition="Exists($(NuGetPushDll))" />

<Target Name="GenerateDynamicTargets" AfterTargets="Pack" DependsOnTargets="Pack;GetPackageTargetPath;SetPackageExists">
<Message Text="Generating temporary targets file..." Importance="high" />

<GenerateDynamicTargets PackagePath="$(PackageTargetPath)" ProjectFile="$(MSBuildProjectFullPath)" DynamicTargetsProjectFile="$(DynamicTargetsProjectFile)" />

<Warning Text="Generated temporary targets file: $(DynamicTargetsProjectFile)" />
<Warning Text="MSBuildProjectFullPath: $(MSBuildProjectFullPath)" />

<GetNuGetSources ProjectFile="$(MSBuildProjectFullPath)">
<Output TaskParameter="NuGetSources" ItemName="NuGetSource" />
</GetNuGetSources>

<Warning Text="NuGet sources: @(NuGetSource->'%(Name)', ', ')" />
</Target>

<Import Project="$(DynamicTargetsProjectFile)" Condition="Exists($(DynamicTargetsProjectFile))" />

<Target Name="DeleteTemporaryTargetsFile" AfterTargets="AfterBuild,Compile" DependsOnTargets="AfterBuild">
<Message Text="Deleting temporary targets file..." Importance="high" />
<Delete Files="$(DynamicTargetsProjectFile)" />
</Target>
</Project>
17 changes: 17 additions & 0 deletions Targets/PackageExists.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!--
* PackageExists.props
* Created: 2024-08-02T03:38:56-04:00
* Modified: 2024-08-02T03:38:57-04:00
* Author: David G. Moore, Jr. <[email protected]>
* Copyright: © 2022 - 2024 David G. Moore, Jr., All Rights Reserved
* License: MIT (https://opensource.org/licenses/MIT)
-->

<Project>
<Target Name="SetPackageExists" DependsOnTargets="Pack" AfterTargets="Pack">
<PropertyGroup>
<PackageExists Condition="Exists($(PackageTargetPath))">true</PackageExists>
<PackageExists Condition="!Exists($(PackageTargetPath))">false</PackageExists>
</PropertyGroup>
</Target>
</Project>
4 changes: 2 additions & 2 deletions Targets/PushAzure.targets
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<Project>
<Target Name="PushAzure" DependsOnTargets="Pack;MinVer" Condition="'$(GeneratePackageOnBuild)' == 'true'">
<Target Name="PushAzure" DependsOnTargets="Pack;MinVer;SetPackageExists" Condition="'$(GeneratePackageOnBuild)' == 'true' And '$(NuGetPushAzureArtifactsIsEnabled)' == '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"
<Exec Command="echo 'y' | 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>
Expand Down
2 changes: 1 addition & 1 deletion Targets/PushDgmjrNuGetSoftware.targets
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<Target Name="PushDgmjrNuGetSoftware" AfterTargets="Pack" DependsOnTargets="Pack;GetPackageVersion" Condition="'$(GeneratePackageOnBuild)' == 'true' And '$(DesignTimeBuild)' != 'true' And ('$(Configuration)' == 'Local' Or $(InitialTargets.Contains('PushLocal')))">
<Target Name="PushDgmjrNuGetSoftware" AfterTargets="Pack" DependsOnTargets="Pack;GetPackageVersion;SetPackageExists" Condition="'$(GeneratePackageOnBuild)' == 'true' And '$(DesignTimeBuild)' != 'true' And '$(PushDgmjrNuGetSoftwareIsEnabled)' == 'true' And ('$(Configuration)' == 'Local' Or $(InitialTargets.Contains('PushLocal')))">
<NuGetPush.Tasks.GetNuGetApiKey
Source="dgmjr.nuget.software"
MSBuildProjectDirectory="$(MSBuildProjectDirectory)">
Expand Down
20 changes: 20 additions & 0 deletions Targets/PushFaGet.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!--
* PushBaGet.targets
* Created: 2024-07-28T19:26:00-04:00
* Modified: 2024-07-28T19:26:00-04:00
* Author: David G. Moore, Jr. <[email protected]>
* Copyright: © 2022 - 2024 David G. Moore, Jr., All Rights Reserved
* License: MIT (https://opensource.org/licenses/MIT)
-->

<Project>
<Target Name="PushFaGet" DependsOnTargets="Pack;MinVer;SetPackageExists" Condition="'$(GeneratePackageOnBuild)' == 'true'">
<DeletePackage PackageId="$(PackageId)" PackageVersion="$(PackageVersion)" Source="FaGet" ProjectFile="$(MSBuildProjectFullPath)" />
<PushPackage PackagePath="$(PackageTargetPath)" Source="FaGet" ProjectFile="$(MSBuildProjectFullPath)" />
<!-- <Warning Text="Deleting package $(PackageId) version $(PackageVersion) from FaGet..." />
<Exec Command="echo 'y' | dotnet nuget delete $(PackageId) $(PackageVersion) -s FaGet -k $(BAGET_API_KEY)" IgnoreExitCode="true" />
<Exec Command="pwsh -Command Read-Host" />
<Warning Text="Pushing package $(PackageId) version $(PackageVersion) to FaGet..." />
<Exec Command="dotnet nuget push '$(PackageTargetPath)' -s FaGet -k $(BAGET_API_KEY)" Condition="Exists('$(PackageTargetPath)')" /> -->
</Target>
</Project>
2 changes: 1 addition & 1 deletion Targets/PushGitHub.targets
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<Target Name="EnsureGitHubToken" DependsOnTargets="Pack;MinVer" Condition="'$(GeneratePackageOnBuild)' == 'true'">
<Target Name="EnsureGitHubToken" DependsOnTargets="Pack;MinVer;SetPackageExists" Condition="'$(GeneratePackageOnBuild)' == 'true' And '$(NuGetPushGitHubIsEnabled)' == 'true'">
<Exec Command="gh auth token" ConsoleToMSBuild="true" IgnoreExitCode="true">
<Output TaskParameter="ConsoleOutput" PropertyName="GitHubAuthToken" />
</Exec>
Expand Down
7 changes: 3 additions & 4 deletions Targets/PushLocal.targets
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<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" />
<Target Name="PushLocal" AfterTargets="Pack" DependsOnTargets="Pack;GetPackageVersion;SetPackageExists" Condition="'$(GeneratePackageOnBuild)' == 'true' And '$(DesignTimeBuild)' != 'true' And '$(NuGetPushLocalIsEnabled)' == 'true' And ('$(Configuration)' == 'Local' Or $(InitialTargets.Contains('PushLocal')))">
<DeletePackage PackageId="$(PackageId)" PackageVersion="$(PackageVersion)" Source="Local" ProjectFile="$(MSBuildProjectFullPath)" />
<PushPackage PackagePath="$(PackageTargetPath)" Source="Local" ProjectFile="$(MSBuildProjectFullPath)" />
<!-- <NuGetPush.Tasks.DeleteAndPush
Source="Local"
MSBuildProjectDirectory="$(MSBuildProjectDirectory)"
Expand All @@ -11,4 +11,3 @@
PackagePath="$(PackageTargetPath)" /> -->
</Target>
</Project>

2 changes: 1 addition & 1 deletion Targets/PushProGet.targets
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<Target Name="PushProGet" DependsOnTargets="Pack;MinVer" Condition="'$(GeneratePackageOnBuild)' == 'true'">
<Target Name="PushProGet" DependsOnTargets="Pack;MinVer;SetPackageExists" Condition="'$(GeneratePackageOnBuild)' == 'true' And '$(NuGetPushProGetIsEnabled)' == '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"
Expand Down
2 changes: 1 addition & 1 deletion Targets/PushProGetPrerelease.targets
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<Target Name="PushProGetPrerelease" DependsOnTargets="Pack;MinVer" Condition="'$(GeneratePackageOnBuild)' == 'true' And false">
<Target Name="PushProGetPrerelease" DependsOnTargets="Pack;MinVer;SetPackageExists" 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"
Expand Down
Loading

0 comments on commit a599016

Please sign in to comment.