From b62b33a61c4a51a167470789abb0d91b7bd0bfdd Mon Sep 17 00:00:00 2001 From: Maxim Lipnin Date: Thu, 17 Dec 2020 16:09:12 +0300 Subject: [PATCH 1/4] Remove the logic duplication for iOS case --- src/libraries/sendtohelixhelp.proj | 17 ++++------------- src/mono/netcore/sample/iOS/Program.csproj | 10 +++++----- 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/src/libraries/sendtohelixhelp.proj b/src/libraries/sendtohelixhelp.proj index 742f4bb0e1df1..6ed27664439ac 100644 --- a/src/libraries/sendtohelixhelp.proj +++ b/src/libraries/sendtohelixhelp.proj @@ -177,8 +177,9 @@ + <_apps Include="$([System.IO.Directory]::GetDirectories('$(TestArchiveTestsRoot)', '*.app', System.IO.SearchOption.AllDirectories))" /> - + ios-device ios-device ios-simulator-64 @@ -186,20 +187,10 @@ $(_workItemTimeout) $(_workItemTimeout) - - - - - ios-device - ios-device - ios-simulator-64 - ios-simulator-32 - - $(_workItemTimeout) - false + false - 42 + 42 diff --git a/src/mono/netcore/sample/iOS/Program.csproj b/src/mono/netcore/sample/iOS/Program.csproj index a300148a88a37..671cde3bdfad5 100644 --- a/src/mono/netcore/sample/iOS/Program.csproj +++ b/src/mono/netcore/sample/iOS/Program.csproj @@ -99,17 +99,17 @@ $(TargetOS).AnyCPU.$(Configuration) - $(ArtifactsDir)helix/ - $(HelixArchiveRoot)runonly/ - $(HelixArchiveRunOnlyRoot)$(OSPlatformConfig)/ + $(ArtifactsDir)helix/ + $(TestArchiveRoot)tests/ + $(TestArchiveTestsRoot)$(OSPlatformConfig)/runonly/ <_appFiles Include="$(AppBundlePath)/../**/*" /> + DestinationFolder="$(TestArchiveRunOnlyAppsDir)/%(RecursiveDir)" /> - + From a4a2f181a02f3b63ae576fa44ad863fbfead8afe Mon Sep 17 00:00:00 2001 From: Maxim Lipnin Date: Thu, 17 Dec 2020 17:33:01 +0300 Subject: [PATCH 2/4] Parenthesis --- src/libraries/sendtohelixhelp.proj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libraries/sendtohelixhelp.proj b/src/libraries/sendtohelixhelp.proj index 6ed27664439ac..c9047890bf695 100644 --- a/src/libraries/sendtohelixhelp.proj +++ b/src/libraries/sendtohelixhelp.proj @@ -188,9 +188,9 @@ $(_workItemTimeout) $(_workItemTimeout) - false + false - 42 + 42 From 99137e8a6081db952c22f58bf5932b6f1b6a0a4b Mon Sep 17 00:00:00 2001 From: Maxim Lipnin Date: Fri, 18 Dec 2020 11:23:34 +0300 Subject: [PATCH 3/4] Try the approach with ItemDefinitionGroup --- src/libraries/sendtohelixhelp.proj | 19 ++++++++++++------- src/mono/netcore/sample/iOS/Program.csproj | 10 +++++----- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/src/libraries/sendtohelixhelp.proj b/src/libraries/sendtohelixhelp.proj index c9047890bf695..e15b7abeb4490 100644 --- a/src/libraries/sendtohelixhelp.proj +++ b/src/libraries/sendtohelixhelp.proj @@ -176,21 +176,26 @@ - - <_apps Include="$([System.IO.Directory]::GetDirectories('$(TestArchiveTestsRoot)', '*.app', System.IO.SearchOption.AllDirectories))" /> - - + + ios-device ios-device ios-simulator-64 ios-simulator-32 - $(_workItemTimeout) $(_workItemTimeout) + + + + + + + + - false + false - 42 + 42 diff --git a/src/mono/netcore/sample/iOS/Program.csproj b/src/mono/netcore/sample/iOS/Program.csproj index 671cde3bdfad5..a300148a88a37 100644 --- a/src/mono/netcore/sample/iOS/Program.csproj +++ b/src/mono/netcore/sample/iOS/Program.csproj @@ -99,17 +99,17 @@ $(TargetOS).AnyCPU.$(Configuration) - $(ArtifactsDir)helix/ - $(TestArchiveRoot)tests/ - $(TestArchiveTestsRoot)$(OSPlatformConfig)/runonly/ + $(ArtifactsDir)helix/ + $(HelixArchiveRoot)runonly/ + $(HelixArchiveRunOnlyRoot)$(OSPlatformConfig)/ <_appFiles Include="$(AppBundlePath)/../**/*" /> + DestinationFolder="$(HelixArchiveRunOnlyAppsDir)/%(RecursiveDir)" /> - + From 4f1e08d2043083e6203d9f7a2294acbb749ce369 Mon Sep 17 00:00:00 2001 From: Maxim Lipnin Date: Fri, 18 Dec 2020 12:39:31 +0300 Subject: [PATCH 4/4] ItemDefinitionGroup can't be inside target --- src/libraries/sendtohelixhelp.proj | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/libraries/sendtohelixhelp.proj b/src/libraries/sendtohelixhelp.proj index e15b7abeb4490..312dc2dd9566c 100644 --- a/src/libraries/sendtohelixhelp.proj +++ b/src/libraries/sendtohelixhelp.proj @@ -158,6 +158,17 @@ + + + ios-device + ios-device + ios-simulator-64 + ios-simulator-32 + $(_workItemTimeout) + $(_workItemTimeout) + + +