Uno.Dsp.Tasks
1.2.8
See the version list below for details.
dotnet add package Uno.Dsp.Tasks --version 1.2.8
NuGet\Install-Package Uno.Dsp.Tasks -Version 1.2.8
<PackageReference Include="Uno.Dsp.Tasks" Version="1.2.8" />
paket add Uno.Dsp.Tasks --version 1.2.8
#r "nuget: Uno.Dsp.Tasks, 1.2.8"
// Install Uno.Dsp.Tasks as a Cake Addin
#addin nuget:?package=Uno.Dsp.Tasks&version=1.2.8
// Install Uno.Dsp.Tasks as a Cake Tool
#tool nuget:?package=Uno.Dsp.Tasks&version=1.2.8
Uno DSP Tooling - MSBuild Tasks
This is the package that contains the MSBuild tasks to automate the generation of the color overrides file in projects using Uno.
This is used to generate Color Overrides file for project using Uno.Themes like documented on the official documentation.
How to get your DSP file
DSP Files are used to define the color palette of a theme and can be generated using the Material V3 Theme Builder web site. Simply export using the "Material Tokens (DSP)" format and download the generated zip file.
Configuration
You need to add reference to the Uno.Dsp.Tasks package in the project where you want the color overrides file to be generated.
[-- MyProject.Shared\MyProject.Shared.csproj --] <ItemGroup> [-- You'll need to replace the version for the proper one --] <PackageReference Include="Uno.Dsp.Tasks" Version="[version]" /> </ItemGroup>
Place your DSP zip file close to where you want the color overrides file to be generated. This is usually in the
Styles
folder on the shared project.ex:
MyProject.Shared\Styles\MyTheme.zip
You need to add the following
PropertyGroup
to your project file:[-- MyProject.Shared\MyProject.Shared.csproj --] <PropertyGroup> <UnoDspImportColors Include="*.zip" Generator="xaml" /> </PropertyGroup>
Compile and you should get a new file named
MyTheme.xaml
in the same folder as your DSP file.Reference this file in your
App.xaml
file, following the Uno Themes documentation:[-- App.xaml --] <Application.Resources> <MaterialColors xmlns="using:Uno.Material" OverrideSource="ms-appx:///Styles/MyTheme.xaml" /> </Application.Resources>
Another tool - CLI
Another tool exists, called Uno.Dsp.Cli to generate the output file from the command line. It is less integrated than this MSBuild task, but it can be used to generate the color overrides file from a DSP file that is not in your project or if you need more flexibility on the moment when it is generated.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on Uno.Dsp.Tasks:
Repository | Stars |
---|---|
beto-rodriguez/LiveCharts2
Simple, flexible, interactive & powerful charts, maps and gauges for .Net, LiveCharts2 can now practically run everywhere Maui, Uno Platform, Blazor-wasm, WPF, WinForms, Xamarin, Avalonia, WinUI, UWP.
|
|
lindexi/lindexi_gd
博客用到的代码
|
Version | Downloads | Last updated |
---|---|---|
1.3.0-dev.2 | 1,094 | 11/15/2023 |
1.2.8 | 709 | 11/17/2023 |
1.2.7 | 4,777 | 11/1/2023 |
1.2.0-dev.34 | 2,563 | 9/29/2023 |
1.2.0-dev.32 | 334 | 9/26/2023 |
1.2.0-dev.30 | 78 | 9/26/2023 |
1.2.0-dev.28 | 42 | 9/26/2023 |
1.2.0-dev.20 | 2,378 | 9/13/2023 |
1.2.0-dev.18 | 1,142 | 8/30/2023 |
1.2.0-dev.12 | 972 | 8/15/2023 |
1.2.0-dev.8 | 1,835 | 7/21/2023 |
1.2.0-dev.6 | 71 | 7/21/2023 |
1.2.0-dev.3 | 79 | 7/21/2023 |
1.1.0 | 23,408 | 5/30/2023 |
1.1.0-dev.14 | 379 | 5/16/2023 |
1.1.0-dev.12 | 89 | 5/12/2023 |
1.1.0-dev.10 | 72 | 5/12/2023 |
1.1.0-dev.8 | 170 | 4/3/2023 |
1.1.0-dev.4 | 160 | 3/20/2023 |
1.1.0-dev.2 | 93 | 3/17/2023 |
1.0.1 | 14,070 | 3/17/2023 |
1.0.0 | 223 | 3/17/2023 |
0.1.0-dev.56 | 206 | 3/17/2023 |
0.1.0-dev.55 | 119 | 3/16/2023 |
0.1.0-dev.52 | 79 | 3/16/2023 |
0.1.0-dev.50 | 76 | 3/15/2023 |