unoplatform / uno.ui.runtimetests.engine

In-App MS Tests Runner for Uno Platform and WinAppSDK
https://platform.uno/
Other
7 stars 3 forks source link

Error compiling with Uno.Sdk SingleProject + Uno.UI.RuntimeTests.Engine on WinUI. #173

Closed ADD-David-Antolin closed 2 months ago

ADD-David-Antolin commented 2 months ago

Current behavior

A project with Uno.Sdk + Uno.UI.RuntimeTests.Engine does not compile for WinUI.

Expected behavior

A project with Uno.Sdk + Uno.UI.RuntimeTests.Engine compiles for all targets.

How to reproduce it (as minimally and precisely as possible)

RuntimeTestEngineBug.zip

Open the repro project and compile UnoApp1. The following errors should appear:

CS0234: The type or namespace name 'Messages' does not exist in the namespace 'Uno.UI.RemoteControl.HotReload' (are you missing an assembly reference? CS0246: The type or namespace name 'UpdateFile' could not be found (are you missing an assembly reference?

Environment

Nuget Package:

Uno.WinUI 5.2.95 Uno.WinUI.DevServer 5.2.95 Uno.RuntimeTests.Engine 0.36.0-dev.124

Affected platform(s):

Visual Studio:

Anything else we need to know?

The problem seems to be that now Uno.WinUI.DevServer is applied to WinUI target framework by Uno.Sdk, but the WinUI version of DevServer does not have neither the dependency to Uno.WinUI.DevServer.Messaging nor access to the class UpdateFile.

jeromelaban commented 2 months ago

Thanks. We'll be fixing this in Uno.Sdk, though in the meantime you should be able to add an explicit package reference to Uno.WinUI.DevServer.Messaging to get you going.

ADD-David-Antolin commented 2 months ago

@jeromelaban I did that but still does not find the class UpdateFile.