Skip to content

Commit

Permalink
Merge pull request #11 from royalapplications/fix-WFO1000-warnings
Browse files Browse the repository at this point in the history
Resolve `WFO1000` build warnings
  • Loading branch information
StefanKoell authored Sep 19, 2024
2 parents c882e29 + fc9b749 commit 9e78b3b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ jobs:

# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v2
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.304
dotnet-version: '9.0'

# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<!-- <TargetFramework>net462</TargetFramework>-->
<Nullable>enable</Nullable>
<LangVersion>10</LangVersion>
<ImplicitUsings>false</ImplicitUsings>
</PropertyGroup>

<PropertyGroup>
<TargetFramework>net7.0-windows</TargetFramework>
<TargetFramework>net9.0-windows</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<OutputType>WinExe</OutputType>
<UseWindowsForms>true</UseWindowsForms>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
using Windows.Win32.Storage.Xps;
using Windows.Win32.UI.Accessibility;
using Windows.Win32.UI.WindowsAndMessaging;
using System.ComponentModel;
// ReSharper disable CommentTypo
// ReSharper disable StringLiteralTypo

Expand All @@ -36,6 +37,7 @@ public class ExternalAppHost : Control
/// <summary>
/// The Handle property as HWND.
/// </summary>
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
internal HWND ControlHandle { get; private set; }

private ExternalApp? _externalApp;
Expand All @@ -45,6 +47,7 @@ public class ExternalAppHost : Control
/// Gets or sets the <see cref="ILoggerFactory" /> used to create instances of <see cref="ILogger" />.
/// Defaults to <see cref="NullLoggerFactory" />.
/// </summary>
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public ILoggerFactory LoggerFactory { get; set; }

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<LangVersion>latest</LangVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);NU1603,NU1701,NU5100,CS8981;WFO1000</NoWarn>
<NoWarn>$(NoWarn);NU1603,NU1701,NU5100,CS8981</NoWarn>
<Configurations>Debug;Release</Configurations>
<Platforms>AnyCPU;x64;ARM64</Platforms>
</PropertyGroup>
Expand Down

0 comments on commit 9e78b3b

Please sign in to comment.