只需从Uno模板创建两个空项目。
驱动器C:/test
-XAML热重装工作
[DEBUG] dbug: Uno.UI.RemoteControl.Host.HotReload.ServerHotReloadProcessor[0]
[DEBUG] Base project path: C:\test\App1\App1\App1.Droid\App1.Droid.csproj
[DEBUG] dbug: Uno.UI.RemoteControl.Host.HotReload.ServerHotReloadProcessor[0]
[DEBUG] Xaml Search Paths: C:\test\App1\App1\App1.Shared
[DEBUG] dbug: Uno.UI.RemoteControl.Host.HotReload.ServerHotReloadProcessor[0]
[DEBUG] File C:\test\App1\App1\App1.Shared\MainPage.xaml changed
(最后一行看到MainPage.xaml更改)
驱动器D:/test
-XAML热加载不工作
[DEBUG] dbug: Uno.UI.RemoteControl.Host.HotReload.ServerHotReloadProcessor[0]
[DEBUG] Base project path: D:\test\App1\App1\App1.Droid\App1.Droid.csproj
[DEBUG] dbug: Uno.UI.RemoteControl.Host.HotReload.ServerHotReloadProcessor[0]
[DEBUG] Xaml Search Paths: D:\test\App1\App1\App1.Shared
(更改MainPage.xaml时无日志,并且UI均未更改)
我花了三天时间才弄清楚。请帮助找到根本原因。