File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,4 +34,28 @@ partial class Build
3434 . SetApiKey ( NugetPublicApiKey ) ) ;
3535 }
3636 } ) ;
37+
38+ Target DeleteNuGet => _ => _
39+ . Requires ( ( ) => NugetPublicApiKey )
40+ . Requires ( ( ) => NugetPrivateApiKey )
41+ . OnlyWhenStatic ( ( ) => IsLocalBuild )
42+ . Executes ( ( ) =>
43+ {
44+ foreach ( var versionPair in PackageVersionsMap )
45+ {
46+ DotNetNuGetDelete ( settings => settings
47+ . SetPackageId ( "Nice3point.TUnit.Revit" )
48+ . SetPackageVersion ( versionPair . Value )
49+ . SetSource ( NugetPrivateSource )
50+ . SetApiKey ( NugetPrivateApiKey )
51+ . EnableNonInteractive ( ) ) ;
52+
53+ DotNetNuGetDelete ( settings => settings
54+ . SetPackageId ( "Nice3point.TUnit.Revit" )
55+ . SetPackageVersion ( versionPair . Value )
56+ . SetSource ( NugetPublicSource )
57+ . SetApiKey ( NugetPublicApiKey )
58+ . EnableNonInteractive ( ) ) ;
59+ }
60+ } ) ;
3761}
You can’t perform that action at this time.
0 commit comments