From 4ebb2bf16d6b793607e46ee216cd89ae4db172a8 Mon Sep 17 00:00:00 2001 From: "Gordon Lam (SH)" Date: Fri, 13 Jun 2025 15:26:52 +0800 Subject: [PATCH] Fix the Fuzz test build issue --- src/modules/Hosts/Hosts.Tests/Hosts.Tests.csproj | 1 + src/modules/Hosts/HostsUILib/Models/Entry.cs | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modules/Hosts/Hosts.Tests/Hosts.Tests.csproj b/src/modules/Hosts/Hosts.Tests/Hosts.Tests.csproj index 0f0a57ba6b..c3a1c2190b 100644 --- a/src/modules/Hosts/Hosts.Tests/Hosts.Tests.csproj +++ b/src/modules/Hosts/Hosts.Tests/Hosts.Tests.csproj @@ -9,6 +9,7 @@ $(SolutionDir)$(Platform)\$(Configuration)\tests\Hosts.Tests\ Hosts.Tests PowerToys.Hosts.Tests + EXCLUDE_FORFUZZTEST diff --git a/src/modules/Hosts/HostsUILib/Models/Entry.cs b/src/modules/Hosts/HostsUILib/Models/Entry.cs index 2faadf0ca1..543f958a22 100644 --- a/src/modules/Hosts/HostsUILib/Models/Entry.cs +++ b/src/modules/Hosts/HostsUILib/Models/Entry.cs @@ -8,11 +8,13 @@ using System.Text; using CommunityToolkit.Mvvm.ComponentModel; using HostsUILib.Helpers; -using Microsoft.UI.Xaml.Data; namespace HostsUILib.Models { - [Bindable] +#if !EXCLUDE_FORFUZZTEST + + [Microsoft.UI.Xaml.Data.Bindable] +#endif public partial class Entry : ObservableObject { private static readonly char[] _spaceCharacters = new char[] { ' ', '\t' };