如何在 Xamarin.Forms UWP 项目中使用 HotReload 功能

编程入门 行业动态 更新时间:2024-10-26 18:26:11
本文介绍了如何在 Xamarin.Forms UWP 项目中使用 HotReload 功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我已将 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/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/content/idea/661682/xaml-hot-reload-for-xamarinforms-on-uwp.html

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

更多推荐

[db:关键词]

本文发布于:2023-04-28 09:42:47,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1171545.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:功能   项目   如何在   Xamarin   UWP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!