/Storm.BuildTasks

Repository for useful MSBuild tasks

Primary LanguageC#MIT LicenseMIT

Storm.BuildTasks Build status

This repository contains MSBuild tasks to simplify development of (mostly) Xamarin applications.

Here is the list of tasks available :

Storm.BuildTasks.AndroidColors nuget

Available on nuget or with nuget Package Manager Install-Package Storm.BuildTasks.AndroidColors

This nuget package add a build tasks before compilation of your project to turn C# file with int variable into colors.xml file format for Xamarin.Android.

Main purpose: Sharing colors between Xamarin.Android and Xamarin.iOS projects easily.

How to ?

  • Reference nuget package
  • Add your C# file containing your colors in the directory where you want your color.xml to be generated (for instance: Resources/values). If it's shared with other projects, you can add it as link !
  • Set its build target to ColorFile
  • Build your project
  • A colors.xml file has been generated next to your C# file, you just need to add it to the project.
  • Bonus: if you have multiple C# file in the same directory, they will be turned into only one colors.xml file containing all values.

Contributions

Contributions are welcome !

  • If you find a bug, please fill an issue
  • If you want a feature for an existing task, please fill an issue
  • If you want another task that you think can be useful, please fill an issue, we can discuss about it

If you want to contribute, create a pull request or fill an issue to discuss about it before !

Licence

MIT © Julien Mialon