From 1ac79890ce4955ecb1c415182a538777e8621807 Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Fri, 3 Mar 2023 15:47:44 +0200 Subject: [PATCH] chore: Remove PlatformItemGroups and move its content accordingly --- src/Directory.Build.props | 15 +++++++++ src/PlatformItemGroups.props | 54 --------------------------------- src/Uno.CrossTargetting.targets | 34 ++++++++++++++++++++- 3 files changed, 48 insertions(+), 55 deletions(-) delete mode 100644 src/PlatformItemGroups.props diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 0a94100c16..aa2ed30168 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -199,6 +199,21 @@ or '$(TargetFramework)'=='net6.0-macos' or '$(TargetFramework)'=='net7.0-macos' ">true + + false + true + + false + true + + <_IsNet>false + <_IsNet Condition="'$(TargetFramework)'=='net461'">true + + <_IsNetCore>false + <_IsNetCore Condition="'$(TargetFramework)'=='net5.0' or '$(TargetFramework)'=='net6.0' or '$(TargetFramework)'=='net7.0'">true + + <_IsNetStd>false + <_IsNetStd Condition="'$(TargetFramework)'=='netstandard2.0' or $(_IsNetCore)">true diff --git a/src/PlatformItemGroups.props b/src/PlatformItemGroups.props deleted file mode 100644 index 47fdb4a200..0000000000 --- a/src/PlatformItemGroups.props +++ /dev/null @@ -1,54 +0,0 @@ - - - - false - true - - false - true - - <_IsNet>false - <_IsNet Condition="'$(TargetFramework)'=='net461'">true - - <_IsNetCore>false - <_IsNetCore Condition="'$(TargetFramework)'=='net5.0' or '$(TargetFramework)'=='net6.0' or '$(TargetFramework)'=='net7.0'">true - - <_IsNetStd>false - <_IsNetStd Condition="'$(TargetFramework)'=='netstandard2.0' or $(_IsNetCore)">true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/Uno.CrossTargetting.targets b/src/Uno.CrossTargetting.targets index f653b44e69..c468a874a0 100644 --- a/src/Uno.CrossTargetting.targets +++ b/src/Uno.CrossTargetting.targets @@ -1,6 +1,38 @@  - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- GitLab