Introduces a new Cli.cs file providing a command-line interface for packing and unpacking with AzuresPackager. Updates project metadata in AzuresPackager.csproj, including package version, output type, and dependency version bump for SharpCompress. Also updates publish.ps1 to use the new version and skip duplicate package uploads.
17 lines
563 B
PowerShell
17 lines
563 B
PowerShell
clear
|
|
$version = "0.0.2"
|
|
|
|
Write-Host "`r`n[Task 1/4] Cleaning project..." -ForegroundColor Magenta
|
|
dotnet clean
|
|
|
|
Write-Host "`r`n[Task 2/4] Building project..." -ForegroundColor Magenta
|
|
dotnet build
|
|
|
|
Write-Host "`r`n[Task 3/4] Restoring project..." -ForegroundColor Magenta
|
|
dotnet restore
|
|
|
|
Write-Host "`r`n[Task 4/4] Packing project..." -ForegroundColor Magenta
|
|
dotnet pack --version $version
|
|
|
|
Write-Host "`r`n[Task 5/4] Publishing project..." -ForegroundColor Magenta
|
|
dotnet nuget push --source AzuresGitea "nupkg\AzuresPackager.$version.nupkg" --skip-duplicate |