简体   繁体   中英

Xamarin WPF doesn't reflect code changes without rebuild

I've configured a Xamarin Forms WPF platform project using this guide: https://learn.microsoft.com/en-us/xamarin/xamarin.forms/platform/other/wpf

It's working, but when I make any change in my Xamarin.Forms class library project (either code or XAML), the change is not reflected in the actual WPF app. Only when I manually rebuild the Xamarin.Forms project, I see the changes reflected.

This is not happening in the UWP project, only in the WPF project.

I managed to solve it by adding the following to the csproj file of the WPF project:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM