batch file script command

 警告: NU5119: File 'D:\NugetProject\LicenseValidationNugetTool\pack\lib\CheckLicense.0.0.1.2.nupkg' was not added to the package. Files and folders starting with '.' or ending with '.nupkg' are excluded by default. To include this file, use -NoDefaultExcludes from the commandline

script.bat

set version=0.0.1.5

set dir=.\pack

md %dir\lib\net48\

xcopy .\CheckLicense\CheckLicense\bin\x64\Release\CheckLicense.dll %dir%\lib\net48\

::xcopy .\LicenseValidation\LicenseValidation\bin\x64\Release\LicenseValidation.dll %dir%\lib\net48\

nuget pack %dir%\CheckLicense.nuspec -NoDefaultExcludes -OutputDirectory %dir%

::nuget pack %dir%\LicenseValidation.nuspec -NoDefaultExcludes -OutputDirectory %dir%

nuget push %dir%\CheckLicense.%version%.nupkg -Source http://10.136.154.100:5432 -ApiKey PatrickStar

::nuget push %dir%\LicenseValidation.%version%.nupkg -Source http://10.136.154.100:5432 -ApiKey PatrickStar 

pause

delete-script.bat

set version=0.0.1.4

set dir=.\pack

nuget delete CheckLicense %version% -Source http://10.136.154.100:5432 -ApiKey PatrickStar -NonInteractive

nuget delete LicenseValidation %version% -Source http://10.136.154.100:5432 -ApiKey PatrickStar -NonInteractive

nuget pack %dir%\CheckLicense.nuspec -NoDefaultExcludes -OutputDirectory %dir%

nuget push %dir%\CheckLicense.%version%.nupkg -Source http://10.136.154.100:5432 -ApiKey PatrickStar

pause

::nuget pack %dir%\LicenseValidation.nuspec -NoDefaultExcludes -OutputDirectory %dir%

::nuget push %dir%\LicenseValidation.%version%.nupkg -Source http://10.136.154.100:5432 -ApiKey PatrickStar

留言