-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Expand file tree
/
Copy pathBuildNugets.ps1
More file actions
29 lines (23 loc) · 963 Bytes
/
BuildNugets.ps1
File metadata and controls
29 lines (23 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
param(
[string]$MDIXVersion = "1.0.0",
[string]$MDIXColorsVersion = "1.0.0",
[string]$MDIXMahAppsVersion = "1.0.0"
)
$year = [System.DateTime]::Now.ToString("yyyy")
$copyright = "Copyright $year James Willock/Mulholland Software Ltd"
$configuration = "Release"
function New-DotNetPackage {
param (
[string]$ProjectPath,
[string]$Version
)
$ProjectPath = Resolve-Path $ProjectPath
Write-Host "Packing $ProjectPath with version $Version"
dotnet pack "$ProjectPath" -c $configuration -p:PackageVersion="$Version" -p:Copyright="$copyright" --no-build
}
Push-Location "$(Join-Path $PSScriptRoot "..")"
# Pack the projects
New-DotNetPackage .\src\MaterialDesignColors.Wpf\MaterialDesignColors.Wpf.csproj $MDIXColorsVersion
New-DotNetPackage .\src\MaterialDesignThemes.Wpf\MaterialDesignThemes.Wpf.csproj $MDIXVersion
New-DotNetPackage .\src\MaterialDesignThemes.MahApps\MaterialDesignThemes.MahApps.csproj $MDIXMahAppsVersion
Pop-Location