You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Docs][UnoAssets][SDK] What is UnoAssets BuildAction doing and for what is it recommended to be used? #21616
Using UnoAssets, which is provided as BuildAction Property has unclear reaction, documentation
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:
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?
@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:
"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 🤔
"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
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.
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.
Activity
DevTKSS commentedon Dec 13, 2025
@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:
uno/src/Uno.Sdk/Sdk/Sdk.props.buildschema.json
Lines 290 to 400 in ec1a944
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
AssetsFolderas equivalent to the MissingUnoAsset Include="./Assets/AppPackageStoredContents/*"which I for example find absolut realistic to be a reasonable option and pre-configured way to use forIStorageprovided Data 🤔uno/src/Uno.Sdk/Sdk/Sdk.props.buildschema.json
Lines 44 to 47 in ec1a944
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
Jen-Uno commentedon Mar 6, 2026
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.
github-actions commentedon Nov 3, 2026
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.
docs: clarify UnoAsset build action semantics