Skip to content

Commit b29e055

Browse files
committed
chore: add NuGet packaging script and .gitignore for build
Introduces a PowerShell script to automate restoring, building, and packing the Wpf.Ui.Violeta project into NuGet packages. Also adds a .gitignore to exclude generated .nupkg and .snupkg files from version control.
1 parent e516853 commit b29e055

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

build/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.nupkg
2+
*.snupkg

build/nuget_pack.ps1

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Set-Location $PSScriptRoot
2+
3+
$projects = @(
4+
"..\src\Wpf.Ui.Violeta"
5+
)
6+
7+
foreach ($proj in $projects) {
8+
Push-Location $proj
9+
Write-Host "Processing $proj..."
10+
dotnet restore
11+
dotnet build -c Release
12+
dotnet pack -c Release -o ../../build/
13+
Pop-Location
14+
}
15+
16+
Pause

0 commit comments

Comments
 (0)