unoplatform / uno.templates

Uno Platform project templates
https://platform.uno/
Other
17 stars 11 forks source link

Issues with the version 5.1.0-dev.28 #386

Closed pictos closed 11 months ago

pictos commented 11 months ago

Installing and creating a new project using the latest dev version of Uno.Template causes some warnings. Running the following command

dotnet new unoapp -preset blank -tests none -markup csharp -o AllYouCanDo

will show up these warnings, related to nuget version missmatch.

no.UI.Adapter.Microsoft.Extensions.Logging (>= 5.0.13) but Uno.UI.Adapter.Microsoft.Extensions.Logging 5.0.13 was not f
ound. An approximate best match of Uno.UI.Adapter.Microsoft.Extensions.Logging 5.0.19 was resolved.
C:\Git\AllYouCanDo\AllYouCanDo.Skia.Gtk\AllYouCanDo.Skia.Gtk.csproj : warning NU1603: AllYouCanDo depends on Uno.WinUI
(>= 5.0.13) but Uno.WinUI 5.0.13 was not found. An approximate best match of Uno.WinUI 5.0.19 was resolved.
C:\Git\AllYouCanDo\AllYouCanDo.Skia.Gtk\AllYouCanDo.Skia.Gtk.csproj : warning NU1603: AllYouCanDo.Skia.Gtk depends on U
no.WinUI.DevServer (>= 5.0.13) but Uno.WinUI.DevServer 5.0.13 was not found. An approximate best match of Uno.WinUI.Dev
Server 5.0.19 was resolved.
C:\Git\AllYouCanDo\AllYouCanDo.Skia.Gtk\AllYouCanDo.Skia.Gtk.csproj : warning NU1603: AllYouCanDo depends on Uno.WinUI.
Lottie (>= 5.0.13) but Uno.WinUI.Lottie 5.0.13 was not found. An approximate best match of Uno.WinUI.Lottie 5.0.19 was
resolved.
C:\Git\AllYouCanDo\AllYouCanDo.Skia.Gtk\AllYouCanDo.Skia.Gtk.csproj : warning NU1603: AllYouCanDo.Skia.Gtk depends on U
no.WinUI.Skia.Gtk (>= 5.0.13) but Uno.WinUI.Skia.Gtk 5.0.13 was not found. An approximate best match of Uno.WinUI.Skia.
Gtk 5.0.19 was resolved.
C:\Git\AllYouCanDo\AllYouCanDo\AllYouCanDo.csproj : warning NU1603: AllYouCanDo depends on Uno.WinUI (>= 5.0.13) but Un
o.WinUI 5.0.13 was not found. An approximate best match of Uno.WinUI 5.0.19 was resolved. [C:\Git\AllYouCanDo\AllYouCan
Do.Skia.Gtk\AllYouCanDo.Skia.Gtk.csproj]
C:\Git\AllYouCanDo\AllYouCanDo\AllYouCanDo.csproj : warning NU1603: AllYouCanDo depends on Uno.WinUI.DevServer (>= 5.0.
13) but Uno.WinUI.DevServer 5.0.13 was not found. An approximate best match of Uno.WinUI.DevServer 5.0.19 was resolved.
 [C:\Git\AllYouCanDo\AllYouCanDo.Skia.Gtk\AllYouCanDo.Skia.Gtk.csproj]
C:\Git\AllYouCanDo\AllYouCanDo\AllYouCanDo.csproj : warning NU1603: AllYouCanDo depends on Uno.WinUI.Lottie (>= 5.0.13)
 but Uno.WinUI.Lottie 5.0.13 was not found. An approximate best match of Uno.WinUI.Lottie 5.0.19 was resolved. [C:\Git\
AllYouCanDo\AllYouCanDo.Skia.Gtk\AllYouCanDo.Skia.Gtk.csproj]

After fixing it manually, and opening the project on VS there are analyzers warnings all over the place, reporting that call site isn't available on the target version image

This doesn't happen with projects created with the previous version

jeromelaban commented 11 months ago

We need to update templates to use all latest versions, will do that today.

nickrandolph commented 11 months ago

Also fixed by https://github.com/unoplatform/uno.templates/pull/407