Can't create a new Uno 5.0 default app #14268
Replies: 13 comments 27 replies
-
No one has commented in this discussion??? Am I the only one in the world having difficulty creating Uno Platform 5.0 applications? If you are also having problems SPEAK UP!!! The entire process of creating a new app in Visual Studio is completely flakey. First the new templates do not appear in the preview version of Visual Studio, so you have to create a new app in the released version of Visual Studio. But once created (if you get that far) the default solution will NOT run in the released version of Visual Studio so you have to run it in the Preview Version. To try and sort out the problems I created 12 different new default solutions, 6 variations repeated twice. I'll share what I found here in the hopes that this information will help whoever is trying to make Uno actually work. The released version of VS I'm using is 17.7.6 and the Preview version is 17.8.0 Preview 6.0.
The anomalies experienced are:
These anomalies for my key test cases are listed below: CPM = Central Package Management, Maui = Maui embedding, Folders = Solution Folder Anomaly, UI / Features / Folders / wasm / WASDK / Runs in Preview From this table it can be seen that Markup and Maui embedding are incompatible due to the WindowsAppSDK versioning error. Attempts to update the WindowsAppSDK fail saying the project is blocking the update. Uno Platform 5.0 looks promising when you finally get it working with Visual Studio. Mark |
Beta Was this translation helpful? Give feedback.
-
Thanks for the report @MarkBrainfire ! Sorry that you are experiencing issues, hopefully we can get these solved for you ASAP
This message is expected and will disappear once you select "Reload Projects". You can see it mentioned in the Wizard - Getting Started tutorials. I'm not quite sure of the reason it appears, I'm assuming a limitation with Visual Studio for third-party extensions, perhaps @jeromelaban knows?
If all else fails, perhaps try and run If nothing else works, can you navigate to the root folder of the failing solution and run
This one I am able to reproduce when using Markup and MAUI Embedding and the appropriate team members have been notified and will look into it ASAP, thanks for finding this!
I can't get this one to repro so we will need to keep investigating
This one I can also not reproduce but is definitely concerning, this one would be good to get a recording of like @MartinZikmund mentioned so we can narrow it down and fix ASAP Let me know if you get more info or if anything here helps, let's get these fixed for you :) |
Beta Was this translation helpful? Give feedback.
-
@MartinZikmund @kazo0 @dansiegel Martin requested videos ... Here's my uno-check: Here's my uno-check --pre-major: Here's an attempt to create an Uno Platform 5.0 XAML app: Here's an attempt to create an Uno Platform 5.0 Markup / Maui Embedding app: |
Beta Was this translation helpful? Give feedback.
-
Here is the log file for dotnet workload clean --all Here is the log file installing wasm-tools from the projects dir of an attempted new Uno 5.0 app I tried running dotnet new unoapp -n cmdlineapp --maui-embedding -markup csharp When I attempted to compile, I still got the error about wasm-tools workload not being present and the WindowsAppSDK versioning error. Mark |
Beta Was this translation helpful? Give feedback.
-
C:\Users\Mark>dotnet new uninstall uno.templates |
Beta Was this translation helpful? Give feedback.
-
When I go into VS and manage extensions Uno Platform project templates are shown as installed. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
The issue with WinAppSdk version can be resolved by adding the ItemsGroup to the "When Condition="$(IsWinAppSdk)" in the main class library csproj (in your case the UnoMauiMarkupPre.csproj). I'm updating the template as we speak to avoid this issue in the future <When Condition="$(IsWinAppSdk)">
<ItemGroup>
<PackageReference Include="Microsoft.WindowsAppSDK" VersionOverride="1.4.231008000" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" VersionOverride="10.0.22621.756" />
</ItemGroup>
</When> |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Here's a binlog uploaded to dropbox. Let me know if you are not able to view it. Thanks. |
Beta Was this translation helpful? Give feedback.
-
After updating to the latest versions of uno-check and the latest Uno Platform templates for VS Preview, I was able to create and run an app with both Markup and MAUI embedding. THANK YOU! So, I can now proceed with my Brainfire project. However, for some of the other variations there were still problems. Perhaps one of the best ways I can contribute to Uno Platform is performing and documenting tedious testing. For now, my way to give back. Tomorrow I'll post a detailed report of many Uno app combinations. For any combination with problems, I'll include a binlog. I just updated VS to Preview 17.8.0 Preview 7. Perhaps this will make a difference as well. The hard work of the Uno Platform team is MUCH appreciated by me. Mark |
Beta Was this translation helpful? Give feedback.
-
Hi All, Today I'm receiving the following error, not sure what's up with this; |
Beta Was this translation helpful? Give feedback.
-
RE "The build must be stopped before the project can be closed" Every time I change the debug target (for example, from Desktop to WebAssembly) using the button in the top toolbox, the VS project seems to get reloaded. If I immediately run the app, I get the mentioned error. If I wait for a couple of seconds, no error appears. In the second case I see that the run/debug button gets disabled for a moment, supposedly signalling that I cannot run the app while the project is being reloaded, but this happens with a big delay (around 5 seconds after I change the debug target), so there's plenty of time for me to click the button and trigger the error. |
Beta Was this translation helpful? Give feedback.
-
I was excited to try out the new Uno 5.0. No luck in VS.
The new templates don't show up at all in VS Prelease.
In the Visual Studio released version 17.7.6 they show up but don't work.
First you get a message about needing to close the build and reload projects.
Then the dependencies complain that you rolled back WindowsAppSDK but when you attempt to update this it is "blocked by project".
The default app should just work. I'm not an edge case. I am using Visual Studio. I've run Uno-Check a million times.
So, I ought to be able to create the default app without any problems.
How are things tested before a release? The process needs to be improved.
I'm tired ... I'll come back and provide more details later if this is helpful ...
Beta Was this translation helpful? Give feedback.
All reactions