Skip to content

[Docs][UnoAssets][SDK] What is UnoAssets BuildAction doing and for what is it recommended to be used? #21616

Description

@MartinZikmund

What would you like clarification on? 🤔

See title

Using UnoAssets, which is provided as BuildAction Property has unclear reaction, documentation

Image

I as VS2022 User of Uno would estimate the UnoAssets BuildAction provided, to be the optimal choose for Storage Extensions Provided Files, but no idea whats really happens behind the szenes and what is maybe not supported as file or for what it is thought.

Concern 📚

Clarification of capabilities 💡

Renderer 🎨

  • Skia
  • Native

Affected platforms 📱💻🖥️

All platforms 🌍

Any feedback? 💬

  • Should be documented because we can choose it as BuildAction in vs2022

  • Should not just be included in the Sdk.props, than also in the Sdk.props.buildschema:

    <ItemGroup>
    <AvailableItemName Include="UnoAsset"/>
    <AvailableItemName Include="UnoImage"/>
    <AvailableItemName Include="UnoIcon"/>
    <AvailableItemName Include="UnoSplashScreen"/>
    <AvailableItemName Include="UnoDspImportColors"/>
    </ItemGroup>

    "metadata": [
    {
    "$appliesTo": [
    "UnoIcon",
    "UnoImage",
    "UnoSplashScreen"
    ],

At the moment, I am using Resources as BuildAction for e.g. txt files to display while runtime, but as we having e.g. UnoImage or similar provided from the Resizetizer, it would be possible in my opinion, that there is also a Uno Action for Storage provided Files?

Activity

  1. added
    triage/untriaged
    on Oct 16, 2025
  2. added
    difficulty/tbd
    project/documentation 📖
    difficulty/starter 🚀
    and removed
    triage/untriaged
    difficulty/tbd
    on Oct 16, 2025
  3. DevTKSS commented on Dec 13, 2025

    @DevTKSS
    Contributor

    @MartinZikmund while the other Entries in the list above from the buildschema are detailed below the second provided Source Links above, it seemy like the Assets is missing there:

    "metadata": [
    {
    "$appliesTo": [
    "UnoIcon",
    "UnoImage",
    "UnoSplashScreen"
    ],
    "BaseSize": {
    "type": "string",
    "description": "Used to specify the size that will be used as a basement for the resize operations. e.g.: BaseSize=\"48,48\"."
    },
    "Resize": {
    "type": "bool",
    "description": "Boolean value to say if the asset should be Resized or not. By default, just vector assets are resized by default."
    },
    "TintColor": {
    "type": "string",
    "description": "Color that will be used to tint the image during the resize phase. You can use a Hex value or a named value like `Fuchsia`."
    },
    "Color": {
    "type": "string",
    "description": "Color that will be used as a background color."
    }
    }
    ],
    "items": {
    "UnoDspImportColors": {
    "description": "Imports a theme file with color definitions.",
    "metadata": {
    "Generator": {
    "type": { "$ref": "#/types/unoDspGenerator" },
    "isRequired": false,
    "defaultValue": "Xaml",
    "description": "The type of generator to use for the theme file (a .json/.zip extracted from Material Theme Builder)."
    },
    "OutputPath": {
    "type":"file-or-folder",
    "isRequired": false,
    "description": "The path that the theme files should be outputted to."
    }
    }
    },
    "UnoIcon": {
    "isSingleton": true,
    "description": "Provides an icon asset for Uno.Resizetizer to use for the application.",
    "metadata": {
    "ForegroundFile": {
    "type": "file",
    "isRequired": true,
    "description": "The path to the image file used in the foreground for your icon."
    },
    "ForegroundScale": {
    "type": "int",
    "description": "The scale factor for the foreground image."
    },
    "AndroidForegroundScale": {
    "type": "int",
    "description": "The scale factor for the foreground image on Android."
    },
    "WasmForegroundScale": {
    "type": "int",
    "description": "The scale factor for the foreground image on WebAssembly."
    },
    "WindowsForegroundScale": {
    "type": "int",
    "description": "The scale factor for the foreground image on Windows."
    },
    "IOSForegroundScale": {
    "type": "int",
    "description": "The scale factor for the foreground image on iOS."
    },
    "SkiaForegroundScale": {
    "type": "int",
    "description": "The scale factor for the foreground image on Skia."
    }
    }
    },
    "UnoSplashScreen": {
    "isSingleton": true,
    "description": "Provides a splash screen asset for Uno.Resizetizer to use for the application.",
    "metadata": {
    "Scale": {
    "type": "int",
    "description": "Used to scale the image that will be used as SplashScreen. This property will be overridden by any platform-specific scale."
    },
    "AndroidScale": {
    "type": "int",
    "description": "Used to scale the image that will be used as SplashScreen on Android."
    },
    "IOSScale": {
    "type": "int",
    "description": "Used to scale the image that will be used as SplashScreen on iOS."
    },
    "WindowsScale": {
    "type": "int",
    "description": "Used to scale the image that will be used as SplashScreen on Windows."
    },
    "WasmScale": {
    "type": "int",
    "description": "Used to scale the image that will be used as SplashScreen on WebAssembly."
    },
    "SkiaScale": {
    "type": "int",
    "description": "Used to scale the image that will be used as SplashScreen on Skia."
    }
    }
    },
    "UnoImage": {
    "description": "Provides an asset typically an SVG or PNG that will be resized for use across each target platform."
    }
    },

    but we seem to have an additional Property that might be used for the Path of it? not sure how the Sdk uses the buildschema, but maybe you know more details, if this is somehow related and we could at least use the AssetsFolder as equivalent to the Missing UnoAsset Include="./Assets/AppPackageStoredContents/*" which I for example find absolut realistic to be a reasonable option and pre-configured way to use for IStorage provided Data 🤔

    "AssetsFolder": {
    "type": "folder-with-slash",
    "description": "The folder containing the assets for this project."
    },

    And by the way, what do you think of the idea, that at least in the Contributing Docs should be added a central and complete Table of all of the available Uno.Sdk recognized additional Tags?
    E.g. for the Version Overrides or similar would this be a really nice lookup, instead of having to lookup the Source if I want to try out if a Bug is fixed in some of the dev builds of Uno Packages

  4. Jen-Uno commented on Mar 6, 2026

    @Jen-Uno
    Contributor

    Validation update (2026-03-05): I reviewed this on branch fix/algolia-docsearch-duplicates-and-layout (PR #22789). This issue still persists / is not resolved by the current branch changes. Tracking and consolidation: #22788.

  5. github-actions commented on Nov 3, 2026

    @github-actions
    Contributor

    This issue has had no activity for 120 days. It will be closed in 10 days if there is no further activity. Remove the Stale label or leave a comment to keep it open.

  6. added
    stale
    on Nov 3, 2026
  7. removed
    stale
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty/starter 🚀kind/documentationproject/documentation 📖

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions