From 4272f1028cc34a984aace823c0f56ac7f4ae0f55 Mon Sep 17 00:00:00 2001 From: michael-hawker <24302614+michael-hawker@users.noreply.github.com> Date: Tue, 28 Mar 2023 13:28:17 -0700 Subject: [PATCH] Ensure `` blocks in props/proj files don't conflict and overwrite one another Consolidates the UWP NoWarn block as well --- MultiTarget/MultiTarget.props | 2 +- MultiTarget/Uno.props | 2 +- ProjectHeads/Head.Uwp.props | 11 ++--------- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/MultiTarget/MultiTarget.props b/MultiTarget/MultiTarget.props index 396d07426..117cadb89 100644 --- a/MultiTarget/MultiTarget.props +++ b/MultiTarget/MultiTarget.props @@ -40,7 +40,7 @@ - WMC1006;CS8034; + $(NoWarn);WMC1006;CS8034; diff --git a/MultiTarget/Uno.props b/MultiTarget/Uno.props index 309ad171b..938f060c0 100644 --- a/MultiTarget/Uno.props +++ b/MultiTarget/Uno.props @@ -22,7 +22,7 @@ - NU1701 + $(NoWarn);NU1701 diff --git a/ProjectHeads/Head.Uwp.props b/ProjectHeads/Head.Uwp.props index aed7c62e8..cfc1b9995 100644 --- a/ProjectHeads/Head.Uwp.props +++ b/ProjectHeads/Head.Uwp.props @@ -17,6 +17,7 @@ {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} true false + $(NoWarn);2008 @@ -26,8 +27,7 @@ true bin\x86\Debug\ - $(DefineConstants);DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP - ;2008 + $(DefineConstants);DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP full x86 false @@ -39,7 +39,6 @@ bin\x86\Release\ $(DefineConstants);TRACE;NETFX_CORE;WINDOWS_UWP true - ;2008 pdbonly x86 false @@ -51,7 +50,6 @@ true bin\ARM\Debug\ $(DefineConstants);DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP - ;2008 full ARM false @@ -63,7 +61,6 @@ bin\ARM\Release\ $(DefineConstants);TRACE;NETFX_CORE;WINDOWS_UWP true - ;2008 pdbonly ARM false @@ -75,7 +72,6 @@ true bin\ARM64\Debug\ $(DefineConstants);DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP - ;2008 full ARM64 false @@ -87,7 +83,6 @@ bin\ARM64\Release\ $(DefineConstants);TRACE;NETFX_CORE;WINDOWS_UWP true - ;2008 pdbonly ARM64 false @@ -99,7 +94,6 @@ true bin\x64\Debug\ $(DefineConstants);DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP - ;2008 full x64 false @@ -111,7 +105,6 @@ bin\x64\Release\ $(DefineConstants);TRACE;NETFX_CORE;WINDOWS_UWP true - ;2008 pdbonly x64 false