Uno.Dsp.Tasks 0.1.0-dev.52

Prefix Reserved
This is a prerelease version of Uno.Dsp.Tasks.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Uno.Dsp.Tasks --version 0.1.0-dev.52
                    
NuGet\Install-Package Uno.Dsp.Tasks -Version 0.1.0-dev.52
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Uno.Dsp.Tasks" Version="0.1.0-dev.52" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Uno.Dsp.Tasks" Version="0.1.0-dev.52" />
                    
Directory.Packages.props
<PackageReference Include="Uno.Dsp.Tasks" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Uno.Dsp.Tasks --version 0.1.0-dev.52
                    
#r "nuget: Uno.Dsp.Tasks, 0.1.0-dev.52"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Uno.Dsp.Tasks&version=0.1.0-dev.52&prerelease
                    
Install Uno.Dsp.Tasks as a Cake Addin
#tool nuget:?package=Uno.Dsp.Tasks&version=0.1.0-dev.52&prerelease
                    
Install Uno.Dsp.Tasks as a Cake Tool

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

  1. You need to add reference to the Uno.Dsp.Tasks package in the project where you want the color overrides file to be generated.

    
    <ItemGroup>
    
        <PackageReference Include="Uno.Dsp.Tasks" Version="[version]" />
    </ItemGroup>
    
  2. 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

  3. You need to add the following PropertyGroupto your project file:

    
    <PropertyGroup>
       <UnoDspImportColors Include="*.zip" Generator="xaml" />
    </PropertyGroup>
    
  4. Compile and you should get a new file named MyTheme.xaml in the same folder as your DSP file.

  5. Reference this file in your App.xaml file, following the Uno Themes documentation:

    
    <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.

There are no supported framework assets in this package.

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 (3)

Showing the top 3 popular GitHub repositories that depend on Uno.Dsp.Tasks:

Repository Stars
unoplatform/uno
Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
unoplatform/Uno.Samples
A collection of code samples for the Uno Platform
lindexi/lindexi_gd
博客用到的代码
Version Downloads Last updated
1.4.0 61,586 6/14/2024
1.4.0-dev.12 67,156 5/19/2024
1.3.2 3,446 5/21/2024
1.3.0 18,400 5/8/2024
1.3.0-dev.16 182 5/7/2024
1.3.0-dev.13 93 5/2/2024
1.3.0-dev.5 2,456 2/15/2024
1.3.0-dev.2 7,707 11/15/2023
1.2.9 9,366 2/15/2024
1.2.8 12,861 11/17/2023
1.2.7 11,563 11/1/2023
1.2.0-dev.34 2,610 9/29/2023
1.2.0-dev.32 376 9/26/2023
1.2.0-dev.30 129 9/26/2023
1.2.0-dev.28 83 9/26/2023
1.2.0-dev.20 2,436 9/13/2023
1.2.0-dev.18 1,191 8/30/2023
1.2.0-dev.12 1,016 8/15/2023
1.2.0-dev.8 1,883 7/21/2023
1.2.0-dev.6 123 7/21/2023
1.2.0-dev.3 127 7/21/2023
1.1.0 27,591 5/30/2023
1.1.0-dev.14 430 5/16/2023
1.1.0-dev.12 138 5/12/2023
1.1.0-dev.10 123 5/12/2023
1.1.0-dev.8 222 4/3/2023
1.1.0-dev.4 212 3/20/2023
1.1.0-dev.2 135 3/17/2023
1.0.1 14,368 3/17/2023
1.0.0 514 3/17/2023
0.1.0-dev.56 249 3/17/2023
0.1.0-dev.55 168 3/16/2023
0.1.0-dev.52 121 3/16/2023
0.1.0-dev.50 117 3/15/2023