From 1c86455c387ae6872f66c76bbd680f279c5946ae Mon Sep 17 00:00:00 2001 From: Martin Zikmund Date: Mon, 14 Oct 2024 16:31:05 +0200 Subject: [PATCH] fix: Do not warn about target platform order for libraries --- src/Uno.Sdk/targets/Uno.Sdk.After.targets | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Uno.Sdk/targets/Uno.Sdk.After.targets b/src/Uno.Sdk/targets/Uno.Sdk.After.targets index 643b98a3e6b9..e5c4ab145bb9 100644 --- a/src/Uno.Sdk/targets/Uno.Sdk.After.targets +++ b/src/Uno.Sdk/targets/Uno.Sdk.After.targets @@ -93,6 +93,7 @@ Condition=" '$(UnoDisableVSWarnDesktopIsFirst)' != 'true' AND '$(BuildingInsideVisualStudio)' == 'true' + AND '$(OutputType)'!='Library' AND '$(_UnoTargetFrameworkCount)' != '' AND $(_UnoTargetFrameworkCount) > 1 AND $([MSBuild]::GetTargetPlatformIdentifier($(_UnoFirstOriginalTargetFramework))) == 'desktop'"> @@ -106,6 +107,7 @@ Condition=" '$(UnoDisableVSWarnWindowsIsFirst)' != 'true' AND '$(BuildingInsideVisualStudio)' == 'true' + AND '$(OutputType)'!='Library' AND '$(_UnoTargetFrameworkCount)' != '' AND $(_UnoTargetFrameworkCount) > 1 AND $([MSBuild]::GetTargetPlatformIdentifier($(_UnoFirstOriginalTargetFramework))) == 'windows'"> @@ -119,6 +121,7 @@ Condition=" '$(UnoDisableVSWarnNetIsFirst)' != 'true' AND '$(BuildingInsideVisualStudio)' == 'true' + AND '$(OutputType)'!='Library' AND '$(_UnoTargetFrameworkCount)' != '' AND $(_UnoTargetFrameworkCount) > 1 AND $([MSBuild]::GetTargetPlatformIdentifier($(_UnoFirstOriginalTargetFramework))) == ''