From 5b55dc268655b07e31b66afbb18b95a2a1c98ce3 Mon Sep 17 00:00:00 2001 From: dahall Date: Thu, 24 Dec 2020 15:47:38 -0700 Subject: [PATCH] Fixed more compiler warnings --- Directory.Build.props | 3 +++ Windows.Forms/DesktopWindowManager.cs | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Directory.Build.props b/Directory.Build.props index 9a69e128..de800739 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -33,6 +33,9 @@ $(CIBUILD) $(CIBUILD) + + $(MSBuildWarningsAsMessages);NETSDK1105;NETSDK1138 + diff --git a/Windows.Forms/DesktopWindowManager.cs b/Windows.Forms/DesktopWindowManager.cs index 92472b2a..8100baa2 100644 --- a/Windows.Forms/DesktopWindowManager.cs +++ b/Windows.Forms/DesktopWindowManager.cs @@ -459,7 +459,6 @@ namespace Vanara.Windows.Forms public void Dispose() => DestroyHandle(); - [System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.Demand, Name = "FullTrust")] protected override void WndProc(ref Message m) { // ReSharper disable InconsistentNaming