diff --git a/Directory.Build.props b/Directory.Build.props index d5c2513673..f01ab74c87 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -15,6 +15,17 @@ true true true + + + false + James Willock + James Willock + MIT + https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit + MaterialDesign.Icon.png + false + README.md + https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/releases @@ -30,4 +41,10 @@ + + + + + + \ No newline at end of file diff --git a/build/BuildNugets.ps1 b/build/BuildNugets.ps1 index d398eb4dc6..766158b4f1 100644 --- a/build/BuildNugets.ps1 +++ b/build/BuildNugets.ps1 @@ -8,42 +8,22 @@ $year = [System.DateTime]::Now.ToString("yyyy") $copyright = "Copyright $year James Willock/Mulholland Software Ltd" $configuration = "Release" -function Update-Versions { +function New-DotNetPackage { param ( - [string]$Path - ) - $Path = Resolve-Path $Path - [xml] $xml = Get-Content $Path - - foreach ($dependency in $xml.package.metadata.dependencies.group.dependency) { - if ($dependency.id -eq "MaterialDesignColors") { - $dependency.version = $MDIXColorsVersion - } - elseif ($dependency.id -eq "MaterialDesignThemes") { - $dependency.version = $MDIXVersion - } - } - $xml.Save($Path) -} - -function New-Nuget { - param ( - [string]$NuSpecPath, + [string]$ProjectPath, [string]$Version ) - $NuSpecPath = Resolve-Path $NuSpecPath - nuget pack "$NuSpecPath" -version "$Version" -Properties "Configuration=$configuration;Copyright=$copyright" + $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 "..")" -Update-Versions .\src\MaterialDesignColors.Wpf\MaterialDesignColors.nuspec -Update-Versions .\src\MaterialDesignThemes.Wpf\MaterialDesignThemes.nuspec -Update-Versions .\src\MaterialDesignThemes.MahApps\MaterialDesignThemes.MahApps.nuspec - -New-Nuget .\src\MaterialDesignColors.Wpf\MaterialDesignColors.nuspec $MDIXColorsVersion -New-Nuget .\src\MaterialDesignThemes.Wpf\MaterialDesignThemes.nuspec $MDIXVersion -New-Nuget .\src\MaterialDesignThemes.MahApps\MaterialDesignThemes.MahApps.nuspec $MDIXMahAppsVersion +# 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 diff --git a/src/MaterialDesignColors.Wpf/MaterialDesignColors.Wpf.csproj b/src/MaterialDesignColors.Wpf/MaterialDesignColors.Wpf.csproj index ed1a0c31e9..5b13473873 100644 --- a/src/MaterialDesignColors.Wpf/MaterialDesignColors.Wpf.csproj +++ b/src/MaterialDesignColors.Wpf/MaterialDesignColors.Wpf.csproj @@ -11,6 +11,12 @@ Material Design in XAML Toolkit - Colors $(MDIXColorsVersion) $(MDIXColorsVersion) + + + MaterialDesignColors + Material Design Colors XAML Resources + ResourceDictionary instances containing standard Google Material Design swatches, for inclusion in a XAML application. + WPF XAML Material Design Colour Color UI UX @@ -19,4 +25,5 @@ <_Parameter2>$(MDIXColorsVersion) + \ No newline at end of file diff --git a/src/MaterialDesignThemes.MahApps/MaterialDesignThemes.MahApps.csproj b/src/MaterialDesignThemes.MahApps/MaterialDesignThemes.MahApps.csproj index 5d0eb7f639..8ed6ec4df8 100644 --- a/src/MaterialDesignThemes.MahApps/MaterialDesignThemes.MahApps.csproj +++ b/src/MaterialDesignThemes.MahApps/MaterialDesignThemes.MahApps.csproj @@ -10,6 +10,12 @@ $(MDIXMahAppsVersion) $(MDIXMahAppsVersion) true + + + MaterialDesignThemes.MahApps + Material Design Themes XAML Resources For MahApps Controls + ResourceDictionary instances containing Material Design templates and styles for WPF controls in the MahApps library. + WPF XAML MahApps Material Design Theme Colour Color UI UX @@ -18,4 +24,5 @@ + \ No newline at end of file diff --git a/src/MaterialDesignThemes.Wpf/MaterialDesignThemes.Wpf.csproj b/src/MaterialDesignThemes.Wpf/MaterialDesignThemes.Wpf.csproj index 592420a96b..1b70e4ddc6 100644 --- a/src/MaterialDesignThemes.Wpf/MaterialDesignThemes.Wpf.csproj +++ b/src/MaterialDesignThemes.Wpf/MaterialDesignThemes.Wpf.csproj @@ -12,6 +12,12 @@ $(MDIXVersion) CS1591;CS1574 bin\$(Configuration)\MaterialDesignThemes.Wpf.xml + + + MaterialDesignThemes + Material Design Themes XAML Resources + ResourceDictionary instances containing Material Design templates and styles for WPF controls in .NET. + WPF XAML Material Design Theme Colour Color UI UX @@ -42,4 +48,13 @@ <_Parameter2>$(MDIXVersion) + + + + + + + + + \ No newline at end of file