Skip to content

Commit

Permalink
Resolve WFO1000 build warnings
Browse files Browse the repository at this point in the history
Resolve build warning/error (new in `net9.0`):

> Error WFO1000: Property 'ABC' does not configure the code serialization for its property content
  • Loading branch information
nil4 committed Sep 18, 2024
1 parent 2cc75b4 commit 2862534
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<PropertyGroup>
<TargetFramework>net7.0-windows</TargetFramework>
<TargetFramework>net9.0-windows</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<UseWindowsForms>true</UseWindowsForms>
<StartupObject>RoyalApps.Community.FreeRdp.WinForms.Demo.Program</StartupObject>
Expand Down
2 changes: 2 additions & 0 deletions src/RoyalApps.Community.FreeRdp.WinForms/FreeRdpControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ public class FreeRdpControl : UserControl
/// FreeRDP configuration settings
/// </summary>
[Category("FreeRDP Settings"), Description("FreeRDP configuration settings.")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public FreeRdpConfiguration Configuration { get; set; } = new();

/// <summary>
/// Logger instance
/// </summary>
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public ILogger Logger { get; set; } = DebugLoggerFactory.Create();

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<LangVersion>10</LangVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);CS8981;NU1701;WFO1000</NoWarn>
<NoWarn>$(NoWarn);CS8981;NU1701</NoWarn>
</PropertyGroup>

<PropertyGroup>
Expand Down

0 comments on commit 2862534

Please sign in to comment.