Replies: 2 comments 2 replies
-
@dpavicic If you couldn't get single project to import to solution than try to create it from CLI by |
Beta Was this translation helpful? Give feedback.
-
Hi!, I will try to explain in detail what I want to achieve and what's happening... What I Want to AccomplishI have an existing solution with applications and libraries. There are several backend applications (API, Orleans server, Background Worker) and a frontend Blazor Wasm application. I start/debug them simultaneously using Rider's Multi-Launch feature (I would also incorporate Aspire later on). This works well; I can start and debug them all simultaneously, end-to-end (front end and back end). This is a great experience. Therefore, I would like to add the Uno project to this solution so I can have the same dev experience while developing native apps with Uno. Unfortunately, I didn't find any way so far to achieve this. In this post, I will describe the whole process of importing the Uno project into my solution and explain what happens. What Would Be ExpectedTo easily import the Uno project into the existing solution. This is basic information about env:
The repository with all that I described is here (solution with imported Uno project and all below steps applied) These are the steps: Creating Uno SolutionI created the Uno solution in a separate directory with this command:
Opening Uno Solution Created with Command LineRight from the start, there were problems like this: All .NET Launch Settings Profiles have the .net8.0-ios Target framework set. I had to set the correct frameworks for each profile manually. First BuildOn the first build, Uno errors with:
Second BuildOn a second build, the build passes with these Android warnings: AndroidManifest.xml: Warning XA4218 : Unable to find //manifest/application/uses-library at path: C:\Program Files (x86)\Android\android-sdk\platforms\android-34\optional\androidx.window.extensions.jar
0>AndroidManifest.xml: Warning XA4218 : Unable to find //manifest/application/uses-library at path: C:\Program Files (x86)\Android\android-sdk\platforms\android-34\optional\androidx.window.sidecar.jar From this point, I can build and run Uno Desktop, Blazor WASM, and Android (I'm on a Windows machine). NOTE: Errors and issues I described so far occur on a regular basis when creating a new Uno solution with the command line. In my case, they are 100% reproducible. Transferring Uno Project to Existing SolutionOkay, now I want to copy the Uno project into my existing solution. In this solution, I have backend projects and a Blazor Wasm app, and I want the Uno project to be there for native apps so I can start and debug them without a hassle (end-to-end). I want to be able to debug frontends and backends simultaneously. This works really well with Blazor (Wasm, in my case) and ASP.NET backend apps. So, with that in mind, and from what I see how Uno solution is set, I then:
and
The rest is the same as in the
and update all GUIDs to be the same as the imported Uno project. Then I restart the solution, but:
This is what I have in run/debug configurations: Thanks again for the quick reply! Cheers, Dinko |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, I couldn't get to import single project Uno project into the existing solution. It compiles, but fails to run and missing ios and android heads in Rider. Is there tutorial how to achieve that? Is it possible?
Created from https://x.com/DinkoPavicic/status/1788277174673277081 in order to help dealing with that problem.
Beta Was this translation helpful? Give feedback.
All reactions