Questions tagged [uno-platform]

Uno is an open-source WinUI/UWP Bridge for iOS, Android, WebAssembly, macOS and Linux

uno-platform
131 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
0 answers
2k views

Uno platform vs Blazor & MAUI for WPF migration

I have stumbled onto Uno today, and I have been trying to figure out if this platform would be better for our needs. We have a WPF app that we want to make a web version and using Blazor WASM, we were ...
Shuryno's user avatar
  • 570
5 votes
0 answers
739 views

SecurityException "ECall methods must be packaged into a system module" when running uno WebAssembly on Linux

In our setup we run a .net 5 application on an embedded Linux target. In future we may want to run it on a windows system. For the user interface we are evaluating the uno platform. Because we want ...
Robix's user avatar
  • 51
4 votes
1 answer
322 views

CommandBar Native Style on Uno Platform

I'm trying to do a simple navigation between two frames using CommandBar. The documentation (https://platform.uno/docs/articles/controls/CommandBar.html) says the Native style is default, but on ...
Sérgio Damasceno's user avatar
4 votes
0 answers
206 views

Override default scrollbar behaviour in Windows 10 UWP

I am using the Uno platform and trying to override the default UWP scrollbar and end up with something like this (a static, always visible scrollbar with increased width and different color): I've ...
Tomy's user avatar
  • 499
3 votes
1 answer
110 views

Uno platform setup

I'm trying to set up a desktop application using Uno Platform. I have been trying that for a week and it's not working. In the period of downloading the platform my incternet connection wasn't that ...
Rayzel's user avatar
  • 92
3 votes
0 answers
315 views

UNO platform Skia+GTK doesn't start

I've an app made with uno platform, that works without problems when building for UWP. But when building for Skia+GTK and running it on Windows it shows the following in the console log. fail: Windows....
Aaron Junker-Wildi's user avatar
3 votes
0 answers
99 views

How do we override the font family of Uno.Material styles?

I'm using Material styles from Uno.Themes in my project. How can I override the default font family used in the built-in styles? (I'm assuming there's a way to do this without redefining the whole ...
Batesias's user avatar
  • 2,044
3 votes
0 answers
727 views

How to incorporate Win UI with Prism across the Uno platform?

I fetched the Prism Blank App (Uno Platform) template to set up a basic PrismApplication in the shared project. Probably a very good reason, it is a blank template, therefore even the Win UI Desktop ...
Tommy's user avatar
  • 176
3 votes
0 answers
518 views

Uno-Platform - Debugging WASM - Is this a configuration issue, expected error, or am I doing it wrong?

WebAssembly.Net.Debugging.DevToolsProxy: Error: sending error response for id: msg-163B54A9DE82BF1FBD5A89BDBAE9E87:::71 -> [Result: IsOk: False, IsErr: True, Value: , Error: { "code": -...
1.618employment's user avatar
3 votes
0 answers
145 views

Uno Platform - Android NumberPicker doesn't render properly until you interact with the picker

I'm trying to use Android's Native NumberPicker in an Uno Platform app. What happens is that the Selected value of the picker is left-aligned until I interact with or tap the picker and then the item ...
abrull's user avatar
  • 181
2 votes
0 answers
383 views

How to get XAML hot reload working on Uno Platform?

I've started a new Uno Platform project with the dotnet new unoapp template and have run into issues with hot reload - where XAML/C# changes are meant to be reflected in the application without ...
Illian's user avatar
  • 46
2 votes
0 answers
480 views

Exception from HRESULT: 0x80040904

While working with UNO Plataform, at XAML mainpage, got the error "Exception from HRESULT: 0x80040904". No restart VS, rebuild solution or other things worked. Solution: Was because of ...
Fib0nacci's user avatar
2 votes
0 answers
222 views

Trouble publishing WASM Uno Solution to App Service Azure and a local Publish folder (Error CS2012)

When I try to publish my Uno Platform WASM solution from within Visual Studio 2019 Version 16.9.0 either to an App Service in Azure or to a local publish folder I get the following error. CSC(0,0): ...
Vulten's user avatar
  • 21
2 votes
0 answers
265 views

Uno Platform App on Linux Image not Showing

I am trying to get an Uno project running on a Raspberry Pi. I can get the basic project running but there are issues: Use VS 2019 Uno Extension to create a cross-platform application. Add an Image ...
Josh Davidson's user avatar
2 votes
1 answer
123 views

Uno-Platform: Default FontFamily not available for WASM deployment?

I have built and tested my uno-platform WASM app (yea!) and, like Android and UWP, the default FontFamily for all text is a san-serif font (I'm guessing it's Segoe UI). I am very happy with this as a ...
baskren's user avatar
  • 1,063
2 votes
0 answers
874 views

Why does a WASM based web application work with desktop Chrome, not mobile Chrome on Android?

A WASM based web app built with Uno-Platform (a.k.a. Silverlight on Steroids) works with the desktop Chrome flawlessly, but it always crashes with the mobile Chrome on Android with the following ...
Hong's user avatar
  • 18.1k
1 vote
0 answers
588 views

Getting an error on Nuget Pack when updating to latest Uno Platform

I'm updating my library to the latest Uno version. When executing a nuget pack command, I get the following: NU1012: Some included files are included under TFMs which are missing a platform version: ...
Maximus's user avatar
  • 1,439
1 vote
0 answers
89 views

Sharing platform specific code - Uno platform

I'm studying Uno platform, and I would like to write my platform specific code in separate assemblies without using #if statements. I googled this link where they suggest using partial classes. Works ...
Bartek Wójcik's user avatar
1 vote
0 answers
64 views

Uno Platform: Error building UWP project when .Net Native toolchain is enabled

I'm trying to create a release build for my UWP project with .net native toolchain enabled and I get the following error 1> Process execution statistics (all times in milliseconds) (TaskId:226) 1&...
abrull's user avatar
  • 181
1 vote
0 answers
77 views

DataGrid not showing in .Droid (Uno-platform)

I made DataGrid that correctly displays data in .Wasm and .UWP, but on .Droid app it doesn't show anything (header or body). The calling to my API works and data is correctly sent to .Droid. I store ...
5ra's user avatar
  • 25
1 vote
0 answers
173 views

uno-check says Microsoft.NET.Workload.Mono.ToolChain.Manifest-6.0.200.6.0.2-mauipre.1.22054.8 is not signed

Using Visual Studio 17.1 Preview 2, after all are instaled, i run uno-check and its says: Failed to update the advertising manifest microsoft.net.workload.mono.toolchain: Failed to validate package ...
Mariano Gomez Bidondo's user avatar
1 vote
1 answer
388 views

how to build a UNO Platform MacOS desktop app

I am able to build a Uno Platform app on Droid, iOS, UWP and WASM, but when I try the macOS platform, I an unsuccessful with the following issues: If I attempt to build on my Windows box using a Debug/...
Robotuner's user avatar
  • 221
1 vote
0 answers
40 views

Cannot rename a file in uno WASM Platform

I have a uno app where I can rename a file using uno UWP but the same code does not rename the file when build against the uno WASM platform. I am getting the list of files in a folder using a ...
Robotuner's user avatar
  • 221
1 vote
0 answers
76 views

Displaying video on UWP and WASM

I have an Uno app that I'd like to display media on both the UWP and WASM platforms. Mostly images (jpg) but also the occasional .mov. I am using an itemselector with the following datatemplate for ...
Robotuner's user avatar
  • 221
1 vote
1 answer
276 views

How to efficiently load multiple images dynamically from Stream?

I need to load and show multiple images in a list. Imagine a list of "photo albums" each containing multiple images - and I want to show a list of those albums with thumbnails of the first 4 ...
TopperDEL's user avatar
1 vote
0 answers
161 views

Loading Image from URL

I’m working on a UNO-WASM project using images hosted on a webserver. There is no problem displaying the images via Binding the URL to the Source property of the Image, but if I wish do the same thing ...
Michael's user avatar
  • 77
1 vote
1 answer
80 views

What using do I need to reference Uno.Web.Http.CookieManager

Roughly following uno-prism template. Can't find Uno.Web.Http.CookieManager. Actually can't find Uno.Web. What am I missing? Tried: using Uno; using Uno.UI; using Uno.UI.Toolkit; using Uno.UI.Web; ...
Leslie's user avatar
  • 11
1 vote
0 answers
109 views

Type universe cannot resolve assembly: Uno.UI, Version=255.255.255.255 Platform Uno

I've not been able to find the cause of this but the repo scenario I have is create a new project uno project. Set your startup project as UWP. Set your mininmum version of windows to 1809 and then ...
Jazzeroki's user avatar
  • 173
1 vote
0 answers
162 views

UNO, WASM: How to use webpack

I am working on a VS Code Extension and want to use Uno Platform to create the UI for the extension. I have started by creating a new Typescript extension with the Yo generator. It creates a webpack ...
The Sharp Ninja's user avatar
1 vote
1 answer
236 views

Scanning documents in UWP and WASM

my boss told me a week ago that we need to be able to list the Scanner Devices availables and select one of them for scanning documents in UNO PLATFORM. We mainly need this working for Wasm and Uwp. I ...
franedibox's user avatar
1 vote
0 answers
153 views

WASM on Uno into established Xamarin Forms Solution - gives SPA error no index.html

I added a WASM project head to my existing 70 page Xamarin Forms app; the UWP works fine once I copy the images into it but big trouble getting WASM to work: gives SPA error re missing index.html. To ...
PeteMidg's user avatar
1 vote
1 answer
619 views

Xamarin Forms no longer deploying AppIcon in Visual Studio 2019 Preview 16.10.0

It appears Visual Studio 2019 Preview 16.10.0 is not deploying the AppIcon to iOS. This is the case for the emulator, a physical device and the archive. Unfortunately I had to upgrade to fix another ...
Timd6555's user avatar
1 vote
0 answers
33 views

How to get UnoSliderDemo.Wasm to run on MacOS?

Building debug with Uno 3.7.0-dev.195. Build appears to work, but execution fails looking for UnoSliderDemo.Wasm/bin/Debug/netstandard2.0/UnoSliderDemo.Wasm.runtimeconfig.json. Where do I get this ...
FloridaMatt's user avatar
1 vote
0 answers
81 views

Why does Uno.UI.Toolkit.VisibleBoundsPadding.PaddingMask="All" crash a UWP app occasionally?

I use Uno Platform to target Windows, web, iOS, macOS, Android and Linux with a single code base. Uno.UI.Toolkit.VisibleBoundsPadding.PaddingMask="All" is used on almost every page of an app ...
Hong's user avatar
  • 18.1k
1 vote
0 answers
612 views

Publishing Failed IOS Apple - Visual Studio For Mac

I am working on a project where we are using a Uno platform similar to Xamarin. Now I finished the project and I got the certificate from the apple developer. I am using visual studio for mac and I am ...
williamcamasil's user avatar
1 vote
0 answers
75 views

Warning when compiling and executing application on Uno Platform with the Skia.Gtk project

I am training myself on Uno development on an Ubuntu 20.04. I created a uno application with dotnet new unoapp -o Tutorial2 After dotnet run the Uno application on Gtk starts. Anyway I am facing a ...
Jean-Marc's user avatar
  • 870
1 vote
1 answer
293 views

Uno platform: Debug.Writeline for Wasm doesn't output anything

I'm trying to figure out how to debug Uno Platform apps for the Wasm target. Breakpoints don't work and I have not figured out how to get debug output to work, either. For example, I have in App.xaml....
Peri Hartman's user avatar
  • 19.4k
1 vote
1 answer
886 views

SKBitmap to Image.ImageSource on MacOS

I'm writing an Uno application using SkiaSharp in VS2019, Windows and Mac. I have an Image, defined in Xaml, that I need to display. SKBitmap writeableBitmap = new SKBitmap(width, height); ...
TCat's user avatar
  • 51
1 vote
1 answer
281 views

Deploy UNO Platform macOS app from Windows 10 with VS 2019

I am running VS 2019 on Windows 10 and am connected to my MacBook Pro which is running VS 2019 as well. I am able to run iOS phone apps on my Win 10 box via simulator, is there anyway to deploy to my ...
John Aschenbrenner's user avatar
1 vote
1 answer
94 views

Is there a way to 'freeze' the app in landscape or portrait mode?

Is there a way to 'freeze' the application in either landscape or portrait mode, so turning the device/phone would not turn the app view but it would stay in either landscape or portrait? Thanks
Dierk Droth's user avatar
1 vote
1 answer
212 views

WriteableBitmap doesn't render on Linux but works on UWP and Wasm

Im trying to to render on the UI a red box using the WriteableBitmap object . The application works as intended on UWP : And on Linux using Gtk.Skia, nothing is being displayed (Shares the same code) ...
GabCharbonneau's user avatar
1 vote
1 answer
443 views

Unable to log to console with Uno Platform / UWP Head

How is (cross-platform) logging achieved with Uno? (to console, mainly) I'm using Visual Studio, starting the UWP Head, and when i try to write something to the log, I'm expecting it to appear in ...
Formalist's user avatar
  • 358
1 vote
1 answer
90 views

Unable to get InvokedItemContainer working with Android

I've got a NavigationView like this: <NavigationView Name="NavView" PaneTitle="Games" PaneDisplayMode="Auto" ItemInvoked="...
Surya K's user avatar
  • 65
1 vote
1 answer
394 views

Use of cross-platform C++ dynamic library from C# Uno project

I'm working on the port of the C# UWP project to Uno-Platform. The original project references a lot of logic from C++ DLLs. The interface between C# and C++ library is rather big to write PInvoke ...
Denis Homutovski's user avatar
1 vote
2 answers
116 views

Cant start UNO UWP project

I've created a new UNO project from template , when i try to start the UWP head, it want start , it compile successfully but never start I've noted that the UWP head is missing the App.xaml witch is ...
Hani Safa's user avatar
  • 101
1 vote
0 answers
176 views

How to make a Uno Platform (for WA) that will work with WCF

I am wondering, does Uno platform support WCF for WA? and how I can subscribe and listen to the messages?
Reza's user avatar
  • 73
1 vote
1 answer
205 views

Using WinUI 2.3 in an Uno shared project

I've been excited about Uno but at the end of the day, I'm a diehard Windows 10 M supporter and would like to publish an app for the platform before it's completely buried and impossible to target. ...
lmcdo's user avatar
  • 45
1 vote
1 answer
121 views

How to use Uno Lottie on Android?

Created simple animation like said here: https://learn.microsoft.com/en-us/windows/communitytoolkit/animations/lottie-scenarios/getting_started_json <controls:AnimatedVisualPlayer AutoPlay="True" ...
Jet  Chopper's user avatar
  • 1,478
1 vote
1 answer
701 views

Is there a way to get an Image from byte array? [WASM]

I want to get an image that I have in byte[] but when I want to use System.Drawing.Image.FromStream it says that is not available on UWP and WASM, so I was wondering if there is a way to convert my ...
Cajaaa's user avatar
  • 69
1 vote
0 answers
86 views

Hot reload not working if project created on non-system drive

Simply creating two empty projects from Uno template. Drive C:/test - XAML hot reload working [DEBUG] dbug: Uno.UI.RemoteControl.Host.HotReload.ServerHotReloadProcessor[0] [DEBUG] Base project ...
Jet  Chopper's user avatar
  • 1,478