I am currently developing a project using Uno Platform & .NET 8.0. I’ve used VS Code on Linux to create the project using the ‘Torizon IDE Extension’ and I’ve created a few screens in XAML to test out the project, which led me to 2 questions:
Is there a way to use the Hot Reload feature locally on Linux?
Is there a way to run the project in Windows as well as Linux? The Torizon Toradex template doesn’t seem to easily allow it. I would like to have the option to develop the project using Visual Studio 2022 on Windows as its more convenient than developing on a Linux VM. Uno is meant to be cross-platform, so I’m assuming there’s a way to configure it to work on Toradex and Windows.
Building the project after every minor UI change feels like such an outdated route when Hot Reload is available.
I’m new to using Toradex, so any help is appreciated!
Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Based on the provided context, here are the answers to your questions:
Hot Reload Feature Locally on Linux: The context mentions that it is possible to run the application in Debug mode locally on the development PC using Visual Studio Code. You can select the target .NET Launch (Skia Uno Platform) to run, debug, and hot reload locally. This suggests that you should be able to use the Hot Reload feature locally on Linux by following these steps in Visual Studio Code.
Running the Project on Windows and Linux: The context does not provide specific details about running the project on both Windows and Linux using Visual Studio 2022. However, it does mention the use of Visual Studio Code with the Torizon IDE Extension for development on Linux. Since Uno Platform is cross-platform, it should theoretically be possible to configure your project to work on both Toradex and Windows. You might need to set up a similar development environment on Windows, possibly using Visual Studio Code or Visual Studio 2022, and ensure that your project files and dependencies are compatible across both platforms.
If you need more specific guidance on setting up Visual Studio 2022 for this purpose, additional resources or documentation from Uno Platform or Toradex might be required.
Please, also check if these links can help you solve your problem:
Sorry for the delay here, but ToradexAI got it mostly right! (except for the Arduino reference )
I just tested it and it works. Are you facing some specific issue? If yes, please share more details of what is happening
This is a tough question.
Although Uno Platform is indeed meant to be cross-platform and it implements the same XAML “contract” as Microsoft’s, you might face differences between platforms. To know about the actual differences, you can refer to Uno Platform’s documentation: Uno Platform Documentation. And maybe also their repository on Github: unoplatform/uno · Discussions · GitHub.
So the answer can be “yes, but depends”
If you are using stuff that has the same behavior on both, seems like it should be possible. But please not that I am not a .NET/C#/Uno Platform developer.