Xamarin.iOS.ResourceDesigner 0.7.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Xamarin.iOS.ResourceDesigner --version 0.7.0                
NuGet\Install-Package Xamarin.iOS.ResourceDesigner -Version 0.7.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Xamarin.iOS.ResourceDesigner" Version="0.7.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xamarin.iOS.ResourceDesigner --version 0.7.0                
#r "nuget: Xamarin.iOS.ResourceDesigner, 0.7.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Xamarin.iOS.ResourceDesigner as a Cake Addin
#addin nuget:?package=Xamarin.iOS.ResourceDesigner&version=0.7.0

// Install Xamarin.iOS.ResourceDesigner as a Cake Tool
#tool nuget:?package=Xamarin.iOS.ResourceDesigner&version=0.7.0                

Xamarin.iOS.ResourceDesigner

Build Nuget

Xamarin.iOS Resource designer generator, inspired by R.swift

Description

Resource generation tool for Xamarin.iOS projects. Use code generation to get access to all of your Image Assets in the project. Get direct access to UIImage objects, without need for builerplate code. Create only one instance: objects are created only if they're called, and each object is a singleton

Getting Started

Add Xamarin.iOS.ResourceDesigner NuGet Package to your Xamarin.iOS project (note, this package will work only with Xamarin.iOS projects) and run build. After the build you will have a Resource.designer.cs (unless you redefined it) file generated and included into your project build process. All the code, generated by this tool, is usable with Intellisense.

Additional features

There are several things you can customize to the code generation with special properties. Just add them to your csproj file to the main <PropertyGroup> node:

  • <ResourceDesignerFilePath> - defines the location of the Resource Designer file. The default value is "obj\$(Configuration)\$(Platform)\Resource.designer.cs". This path is relative to the location of the csproj file.
  • <ResourceDesignerImageAssetsTrimmingPrefixes> - defines the list of prefixes, divided by pipe symbol (|), that will be trimmed for the names of the image asset properties. The default value is "ic|img"
  • <ResourceDesignerImageAssetsFilenamesSeparatorChars> - defines symbols that separate words in the name of file, all characters written consequently in string. This property is important for the name parsing of properties. The default value is " _-+."

Issues and Features

Feel free to open an issue or create a feature request if you have some ideas for additional improvements. Pull requests are also most welcome.

Version History

  • 0.7.0
    • Initial release, support for ImageAsset items that has Contents.json files

License

This project is licensed under the MIT license.

Acknowledgments

Inspiration, code snippets, etc.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.8.1 2,514 7/21/2023
0.8.0 195 6/26/2023
0.7.0 190 6/14/2023