【问题标题】:Xamarin WPF doesn't reflect code changes without rebuildXamarin WPF 不反映没有重建的代码更改
【发布时间】:2020-02-24 12:25:23
【问题描述】:

我已经使用本指南配置了一个 Xamarin Forms WPF 平台项目:https://docs.microsoft.com/en-us/xamarin/xamarin-forms/platform/other/wpf

它可以正常工作,但是当我在 Xamarin.Forms 类库项目(代码或 XAML)中进行任何更改时,更改不会反映在实际的 WPF 应用程序中。 只有当我手动重建 Xamarin.Forms 项目时,我才能看到反映的更改。

这在 UWP 项目中没有发生,仅在 WPF 项目中发生。

【问题讨论】:

  • 尝试更新您的视觉工作室。
  • 更新了,没用。

标签: c# wpf xamarin xamarin.forms


【解决方案1】:

我设法通过在 WPF 项目的 csproj 文件中添加以下内容来解决它:

<PropertyGroup>
    <DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
</PropertyGroup> 

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-11-12
    • 1970-01-01
    • 1970-01-01
    • 2013-01-10
    • 1970-01-01
    • 1970-01-01
    • 2021-02-19
    • 2021-12-17
    相关资源
    最近更新 更多