diff --git a/eng/testing/tests.mobile.targets b/eng/testing/tests.mobile.targets index da84cdf37a6d07..586874ad362f6a 100644 --- a/eng/testing/tests.mobile.targets +++ b/eng/testing/tests.mobile.targets @@ -3,7 +3,7 @@ $([MSBuild]::NormalizeDirectory('$(OutDir)', 'AppBundle')) $([MSBuild]::NormalizePath('$(BundleDir)', '$(RunScriptOutputName)')) - true + true @@ -104,6 +104,16 @@ + + + <_runnerFilesToPublish Include="$(AndroidTestRunnerDir)*" Condition="'$(TargetOS)' == 'Android'" /> + <_runnerFilesToPublish Include="$(AppleTestRunnerDir)*" Condition="'$(TargetOS)' == 'iOS' or '$(TargetOS)' == 'tvOS'" /> + + + + + diff --git a/eng/testing/tests.props b/eng/testing/tests.props index 50ff37c891a4fd..6a35aef60eba07 100644 --- a/eng/testing/tests.props +++ b/eng/testing/tests.props @@ -21,10 +21,15 @@ - $(NetCoreAppCurrent)-$(MonoConfiguration) - $([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'AppleAppBuilder', '$(MobileHelpersDirSuffix)')) - $([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'AndroidAppBuilder', '$(MobileHelpersDirSuffix)')) - $([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'MonoAOTCompiler', '$(MobileHelpersDirSuffix)')) + $(NetCoreAppCurrent)-$(MonoConfiguration) + $([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'AppleAppBuilder', '$(MobileHelperTasksDirSuffix)')) + $([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'AndroidAppBuilder', '$(MobileHelperTasksDirSuffix)')) + $([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'MonoAOTCompiler', '$(MobileHelperTasksDirSuffix)')) + + + $(NetCoreAppCurrent)-$(Configuration) + $([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'AppleTestRunner', '$(MobileRunnersDirSuffix)')) + $([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'AndroidTestRunner', '$(MobileRunnersDirSuffix)')) $(PackageRID) true diff --git a/src/libraries/Common/tests/AndroidTestRunner/AndroidTestRunner.cs b/src/libraries/Common/tests/AndroidTestRunner/AndroidTestRunner.cs index 9f232f549ba926..cd02378f62542c 100644 --- a/src/libraries/Common/tests/AndroidTestRunner/AndroidTestRunner.cs +++ b/src/libraries/Common/tests/AndroidTestRunner/AndroidTestRunner.cs @@ -92,7 +92,9 @@ protected override void TerminateWithSuccess() {} public string? Locale { get; } +#pragma warning disable CS8764 public override TextWriter? Logger => null; +#pragma warning restore CS8764 public override string TestsResultsFinalPath { diff --git a/src/libraries/Common/tests/AndroidTestRunner/AndroidTestRunner.csproj b/src/libraries/Common/tests/AndroidTestRunner/AndroidTestRunner.csproj index 24fde08ba8a651..6f73d8ec7cefbc 100644 --- a/src/libraries/Common/tests/AndroidTestRunner/AndroidTestRunner.csproj +++ b/src/libraries/Common/tests/AndroidTestRunner/AndroidTestRunner.csproj @@ -2,11 +2,9 @@ Exe enable - $(NetCoreAppCurrent);$(NetFrameworkCurrent) + $(NetCoreAppCurrent) - - + diff --git a/src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.csproj b/src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.csproj index 078bf94a1172a5..906eea315338de 100644 --- a/src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.csproj +++ b/src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.csproj @@ -2,11 +2,9 @@ Exe enable - $(NetCoreAppCurrent);$(NetFrameworkCurrent) + $(NetCoreAppCurrent) - - + diff --git a/src/libraries/Directory.Build.props b/src/libraries/Directory.Build.props index 67d25c68cd05b0..c82088bcb6e982 100644 --- a/src/libraries/Directory.Build.props +++ b/src/libraries/Directory.Build.props @@ -323,9 +323,6 @@ - - - diff --git a/src/libraries/pretest.proj b/src/libraries/pretest.proj index d073141959ef50..860998494f56ef 100644 --- a/src/libraries/pretest.proj +++ b/src/libraries/pretest.proj @@ -16,6 +16,9 @@ + + +