Skip to content

batzen/XamlColorSchemeGenerator

develop
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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