Skip to content
This repository has been archived by the owner on Jul 10, 2022. It is now read-only.

Generates color scheme xaml files while replacing certain parts of a template file

License

Notifications You must be signed in to change notification settings

batzen/XamlColorSchemeGenerator

Repository files navigation

Deprecation notice

This project has been deprecated and superseeded by XAMLTools.

XamlColorSchemeGenerator

Build status Release Issues Downloads Nuget License

Generates color scheme xaml files while replacing certain parts of a template file.

For an example on how this tool works see the generator input and template files.

Using the tool

Usage with commandline parameters

XamlColorSchemeGenerator accepts the following commandline parameters:

  • -g "Path_To_Your_GeneratorParameters.json"
  • -t "Path_To_Your_Theme.Template.xaml"
  • -o "Path_To_Your_Output_Folder"
  • -v = enables verbose console output

Usage without commandline parameters

Just set the working directory to a directory containing GeneratorParameters.json and Theme.Template.xaml and call XamlColorSchemeGenerator.exe. The tool then also uses the current working dir as the output folder.

Usage during build

    <ItemGroup>
      <PackageReference Include="XamlColorSchemeGenerator" version="4-*" privateAssets="All" includeAssets="build" />
    </ItemGroup>

    <Target Name="GenerateXamlFiles" BeforeTargets="DispatchToInnerBuilds">
      <!-- Generate theme files -->
      <Message Text="$(XamlColorSchemeGeneratorExecutable)" />
      <Exec Command="&quot;$(XamlColorSchemeGeneratorExecutable)&quot;" WorkingDirectory="$(MSBuildProjectDirectory)/Themes/Themes" />
    </Target>

About

Generates color scheme xaml files while replacing certain parts of a template file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published