Skip to content

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

Notifications You must be signed in to change notification settings

ChaseFlorell/ResourceMigrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages