如何在 Xamarin.Forms UWP 项目中使用 HotReload 功能 [英] How to use HotReload feature in Xamarin.Forms UWP project

查看:39
本文介绍了如何在 Xamarin.Forms UWP 项目中使用 HotReload 功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将 UWP 项目添加到我的 Xamarin.Forms 解决方案中.页面顶部有一个链接,上面写着:Hot Reload Available

I've added UWP project to my Xamarin.Forms solution. There is a link on the top of the page that says: Hot Reload Available

但是当我更改 XAML 代码时没有任何反应!.据我检查,对于此功能,我不应该添加任何额外的扩展库.我怎样才能打开这个功能?

but nothing happens when I change the XAML code!. as far as I've checked, for this feature, I should not add any extra libraries of extensions. how can I turn-on this feature?

推荐答案

我在下面引用的文档现在指出,除了 iOS 和 Android 之外,现在还为 Xamarin Forms UWP 应用实现了热重载.耶!

The documentation I referenced below now states that hot reload is now implemented for Xamarin Forms UWP apps in addition to iOS and Android. Yay!

我添加这个答案是希望它能为其他人节省一些时间,想知道为什么它对他们不起作用.

I'm adding this answer in the hope that it saves someone else some time wondering why it isn't working for them.

最初提出的问题的简短回答是,现在

The short answer to the question originally asked is that, right now

热重载不适用于 Xamarin Forms UWP 项目.

尽管具有误导性的可用热重载"模拟器中窗口顶部的消息.

despite that misleading "Hot Reload available" message at the top of the window in the emulator.

它确实适用于 Xamarin Forms iOS 和 Android 项目,也适用于非 Xamarin UWP 项目.

It DOES work for Xamarin Forms iOS and Android projects, and it works for non-Xamarin UWP projects.

这是记录在案的,下面有几段:

This is documented, a few paragraphs down:

http://docs.microsoft.com/en-us/xamarin/xamarin-forms/xaml/hot-reload

如果你想让这条建议得到更多关注,我建议你点赞:

I suggest you upvote this suggestion if you want it to receive more attention:

https:///developercommunity.visualstudio.com/content/idea/661682/xaml-hot-reload-for-xamarinforms-on-uwp.html

这篇关于如何在 Xamarin.Forms UWP 项目中使用 HotReload 功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆