From 286253442c65179b5acffd0bde9898b40baad709 Mon Sep 17 00:00:00 2001 From: nil4 Date: Wed, 18 Sep 2024 16:16:58 +0200 Subject: [PATCH] Resolve `WFO1000` build warnings Resolve build warning/error (new in `net9.0`): > Error WFO1000: Property 'ABC' does not configure the code serialization for its property content --- .../RoyalApps.Community.FreeRdp.WinForms.Demo.csproj | 2 +- src/RoyalApps.Community.FreeRdp.WinForms/FreeRdpControl.cs | 2 ++ .../RoyalApps.Community.FreeRdp.WinForms.csproj | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/RoyalApps.Community.FreeRdp.WinForms.Demo/RoyalApps.Community.FreeRdp.WinForms.Demo.csproj b/src/RoyalApps.Community.FreeRdp.WinForms.Demo/RoyalApps.Community.FreeRdp.WinForms.Demo.csproj index ee10074..7e7910c 100644 --- a/src/RoyalApps.Community.FreeRdp.WinForms.Demo/RoyalApps.Community.FreeRdp.WinForms.Demo.csproj +++ b/src/RoyalApps.Community.FreeRdp.WinForms.Demo/RoyalApps.Community.FreeRdp.WinForms.Demo.csproj @@ -7,7 +7,7 @@ - net7.0-windows + net9.0-windows win-x64 true RoyalApps.Community.FreeRdp.WinForms.Demo.Program diff --git a/src/RoyalApps.Community.FreeRdp.WinForms/FreeRdpControl.cs b/src/RoyalApps.Community.FreeRdp.WinForms/FreeRdpControl.cs index 043e077..0704742 100644 --- a/src/RoyalApps.Community.FreeRdp.WinForms/FreeRdpControl.cs +++ b/src/RoyalApps.Community.FreeRdp.WinForms/FreeRdpControl.cs @@ -41,11 +41,13 @@ public class FreeRdpControl : UserControl /// FreeRDP configuration settings /// [Category("FreeRDP Settings"), Description("FreeRDP configuration settings.")] + [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public FreeRdpConfiguration Configuration { get; set; } = new(); /// /// Logger instance /// + [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public ILogger Logger { get; set; } = DebugLoggerFactory.Create(); /// diff --git a/src/RoyalApps.Community.FreeRdp.WinForms/RoyalApps.Community.FreeRdp.WinForms.csproj b/src/RoyalApps.Community.FreeRdp.WinForms/RoyalApps.Community.FreeRdp.WinForms.csproj index 5a44205..822ca03 100644 --- a/src/RoyalApps.Community.FreeRdp.WinForms/RoyalApps.Community.FreeRdp.WinForms.csproj +++ b/src/RoyalApps.Community.FreeRdp.WinForms/RoyalApps.Community.FreeRdp.WinForms.csproj @@ -16,7 +16,7 @@ 10 true true - $(NoWarn);CS8981;NU1701;WFO1000 + $(NoWarn);CS8981;NU1701