GithubHelp home page GithubHelp logo

lidi / resourcemigrator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chaseflorell/resourcemigrator

0.0 1.0 0.0 192 KB

Generate platform resources from within a PCL resx file - designed for use with Xamarin

C# 100.00%

resourcemigrator's Introduction

Cross platform way to migrate PCL Resources over to Android and iOS. I built this simply to help me keep all my Resources in one spot while building Xamarin projects.


Put all of your resources in *.resx files in your Portable Class Libraries (PCL's), and run this with your build.

It will automatically generate your *.xml resource file for Android, and a CustomUIColor.cs class for iOS (more iOS support to come).

note: if you start your file name with the type of resource you're generating, it will generate the appropriate resource for Android automatically

example:

bools.resx       // will generate bool resources
dimensions.resx  // will generate dimen resources
integers.resx    // will generate int resources
colors.resx      // will generate color resources
items.resx       // will generate item resources
strings.resx     // will generate string resources
foo-bar.resx     // will ALSO generate string resources

usage:

ResourceMigrator.exe /path/to/solution

todo:

  • Automatically update csproj file with any newly created files if it's not already in there.
  • Automatically create the appropriate directory if it doesn't exist.
  • Add more iOS support as the need arises.

resourcemigrator's People

Contributors

chaseflorell avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.