forked from dotnetcore/osharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuget-delete.ps1
14 lines (14 loc) · 944 Bytes
/
nuget-delete.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$version = Read-Host "请输入要删除的版本号"
$props = @(
"OSharpNS.Core", "OSharpNS.AspNetCore", "OSharpNS.Authorization.Datas", "OSharpNS.Authorization.Functions", "OSharpNS.AutoMapper",
"OSharpNS.EntityFrameworkCore", "OSharpNS.EntityFrameworkCore.MySql", "OSharpNS.EntityFrameworkCore.Oracle",
"OSharpNS.EntityFrameworkCore.PostgreSql", "OSharpNS.EntityFrameworkCore.Sqlite", "OSharpNS.EntityFrameworkCore.SqlServer",
"OSharpNS.Exceptionless", "OSharpNS.Hangfire", "OSharpNS.Hosting.Apis", "OSharpNS.Hosting.Core", "OSharpNS.Hosting.EntityConfiguration",
"OSharpNS.Identity", "OSharpNS.Log4Net", "OSharpNS.MiniProfiler", "OSharpNS.Redis", "OSharpNS.Swagger", "OSharpNS",
"OSharpNS.Template.Mvc_Angular", "OSharpNS.CodeGeneration"
)
foreach($prop in $props)
{
nuget delete $prop $version -src "https://www.nuget.org" -NonInteractive
# nuget delete $prop $version -Source "http://nuget.66soft.net/nuget" -NonInteractive
}