unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
8.99k stars 730 forks source link

Uno.WinUI.RemoteControl is invalid #9474

Open HaoLife opened 2 years ago

HaoLife commented 2 years ago

Current behavior

Winui project in startup errors

uno platform - xaml

info: Microsoft.Hosting.Lifetime[0] Application started. Press Ctrl+C to shut down. info: Microsoft.Hosting.Lifetime[0] Hosting environment: Production info: Microsoft.Hosting.Lifetime[0] Content root path: d:\project\UnoAppSamples

uno platform - hot reload

Don't have any news

Expected behavior

Uno.UI project in start success

uno platform - xaml

info: Microsoft.Hosting.Lifetime[0] Application started. Press Ctrl+C to shut down. info: Microsoft.Hosting.Lifetime[0] Hosting environment: Production info: Microsoft.Hosting.Lifetime[0] Content root path: c:\Users\liu\Desktop\uno\MyApp info: Microsoft.Hosting.Lifetime[0] Application started. Press Ctrl+C to shut down. info: Microsoft.Hosting.Lifetime[0] Hosting environment: Production info: Microsoft.Hosting.Lifetime[0] Content root path: c:\Users\liu\Desktop\uno\MyApp warn: Uno.LSP.Roslyn.RoslynServerTarget[0] Cleared ProjectStringCache info: Uno.LSP.Roslyn.RoslynServerTarget[0] Compilation succeeded (_knownNamespaces:2, _typeNamespaceLookup:590) info: Uno.LSP.Roslyn.RoslynServerTarget[0] Waiting for file changes...

uno platform - hot reload

[Info] Launching remote control server (Port:8900, Path:C:\Users\liu.nuget\packages\uno.ui.remotecontrol\4.4.13\buildTransitive../tools/rc/host/net6.0/Uno.UI.RemoteControl.Host.dll) dbug: Microsoft.AspNetCore.Hosting.Diagnostics[3] Hosting starting

dbug: Microsoft.AspNetCore.Hosting.Diagnostics[4] Hosting started

dbug: Microsoft.AspNetCore.Hosting.Diagnostics[13] Loaded hosting startup assembly Uno.UI.RemoteControl.Host

Hosting environment: Production Content root path: c:\Users\liu\Desktop\uno\MyApp

Now listening on: http://[::]:8900 Application started. Press Ctrl+C to shut down.

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

No response

Workaround

No response

Works on UWP/WinUI

Yes

Environment

Uno.UI.RemoteControl / Uno.WinUI.RemoteControl

NuGet package version(s)

vs code extensions Uno Platform - v0.4.0 nuget package Uno.WinUI.* 4.4.5

Affected platforms

No response

IDE

Visual Studio Code

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

HaoLife commented 2 years ago

Uno Platform extension for Code source in where?

jeromelaban commented 2 years ago

Thanks for the report. The VS Code extension is not open source.

I don't understand the issue here, what are the errors you are seeing?

HaoLife commented 2 years ago

Using Uno.UI.RemoteControl in VScode, XAML smart notification and hot reload are effective. However Uno.WinUI.RemoteControl does not take effect. It seems that the plug-in in VScode is not started

The Uno.Winui.RemoteControl mode does not have logs Launching remote control server (Port:8900,

jeromelaban commented 2 years ago

Thanks for the details!

jeromelaban commented 2 years ago

@HaoLife I'm not able to reproduce the behavior you're describing. Which project are you selecting as the active project ? (using the palette with OmniSharp: Select Project)

HaoLife commented 2 years ago
  1. dotnet new -i Uno.ProjectTemplates.Dotnet::4.4.13

  2. dotnet new unoapp -o MyNetApp --vscode

  3. cd MyNetApp

  4. code .

  5. F1 + OmniSharp: Select Project + MyNetApp.Wasm

log: Now listening on: http://[::]:8900

Now seems to be normal

  1. dotnet new -i Uno.Extensions.Templates::2.1.1
  2. dotnet new unoapp-extensions -o MyNetExtApp --vscode
  3. cd MyNetExtApp
  4. code .
  5. F1 + OmniSharp: Select Project + MyNetExtApp.Wasm

The project has not started up

Unoapp template also cannot use hot reload before, now seems to be normal, unoapp-extensions of the template or not

HaoLife commented 2 years ago
  1. dotnet new -i Uno.ProjectTemplates.Dotnet::4.4.13
  2. dotnet new unoapp -o MyNetApp --vscode
  3. cd MyNetApp
  4. code .
  5. F1 + OmniSharp: Select Project + MyNetApp.Wasm

mac os 12.4 Uno Platform v0.4.0 Visual Studio Code 1.70.2

On my MAC, Hot Reload doesn't boot, but on Windows it does