Add wizard capability to fill the Package.appxmanifest with the provided information at Project create time to resolve packaged solution (windows) issues? #1051
Labels
kind/bug
Something isn't working
triage/untriaged
Indicates an issue requires triaging or verification.
Current behavior
Followed along the "Counter" Tutorial (c# markup, mvux)
Ah and one additional thing, I did not test: vs 2022 is telling me something about the android target, some problems, but clicked to quick on X because I do not actually target android on this moment, so might be a missing package or whatever, just to be mentioned.
Expected behavior
Build solution to any target (Skia Desktop do not have that problem! Just WinSDK!) from fresh solution template would be really beginner friendly laughing
Affected platforms
Windows (WinAppSdk)
Template Host
dotnet new
Host OS
Windows
Template Options
dotnet new unoapp -preset blank -presentation mvux -markup csharp -o Counter
(the Name differs in my screenshots because I created a new project for showing you the before/after fixing the properties, but you do know that the name is the most irrelevant thing on this)
Template Version
dotnet new details Uno.Templates Uno.Templates Paketversion: 5.6.0-dev.43 Reserviert: True Details: Templates for creating Uno Platform apps and libraries Quellfeed: https://api.nuget.org/v3/index.json Autoren: Uno Platform Besitzer: https://nuget.org/profiles/unoplatform Lizenzmetadaten: Lizenz: Apache-2.0 Lizenzausdruck: https://licenses.nuget.org/Apache-2.0 Lizenz-URL: https://www.nuget.org/packages/Uno.Templates/5.6.0-dev.43/license Repository-URL: https://github.com/unoplatform/uno.templates Vorlagen: Vorlagenname Kurzname Typ Tags Sprache ----------------------------------------- ------------- -------- ------------------------------------------------------------------------------------------ ------- Uno Platform App unoapp solution Multi-platform/Uno Platform/Android/iOS/macOS/Mac Catalyst/Windows/Linux/WebAssembly/WinUI C# Uno Platform App (.NET 8, UWP) unoapp-uwp solution Multi-platform/Uno Platform/Android/iOS/Windows/macOS/Linux/WebAssembly C# Uno Platform Class Library unolib project Multi-platform/Uno Platform/Library/Android/iOS/Windows/macOS/Linux/WebAssembly C# Uno Platform UI Tests Class Library unoapp-uitest project Multi-platform/Uno Platform/UITest/Android/iOS/macOS/WebAssembly C# Uno Platform Maui Embedding Class Library unomauilib project Multi-platform/Uno Platform/Android/iOS/Mac Catalyst/Windows/WinUI C#
Anything else we need to know?
After some reseach, how Microsoft wants it's stupid package to be happy to at least build (one Warning is still there) I made a few changes, which I would like to share with Uno Dev Team to review for possible implementation into future templates, so the other newbes will not have to get upset because there is no easy solution way available (at least what I found so far)
And thats it! giving the version number as 4 places, publisher, the Logo and BackgroundColor it had build on my win11 machine.
I mentioned the "90% solution": Like you do see down below the markings, "<rescap:Capability" is still be pointed out as Warning, but do not disable the build process. Just after changing the file there you should restart vs 2022 with the project other than me. It did tell me, that a new build process can only be started after ending the last one and it catched itself in a deadlock with the errors I showed above.
Problem is, that inside of the Capabillities tag, Intellisense do not seem to know rescap althought the import was done on the file head. ms documentation did not gave me any solution and gpt tells me exactly what there stands to be the right thing.
I hope, this can help you improve the template in any way, so the application might be able to build. maybe you could implement some kind of uno ui for input the needed values? I dont know the possibilites in templating projects, thats your expertise :)
Kind regards!
The text was updated successfully, but these errors were encountered: