From 6e07d5568518419f2fe1f657653a051e17f3c207 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Fri, 12 Jul 2024 21:26:08 -0400 Subject: [PATCH] Add new target to generate a Packages.Versions.props with all the relevant properties, and remove old custom tasks --- tests/Directory.Build.props | 1 + tests/Shared/Aspire.Workload.Testing.props | 1 + tests/Shared/Aspire.Workload.Testing.targets | 90 +------------------- 3 files changed, 4 insertions(+), 88 deletions(-) diff --git a/tests/Directory.Build.props b/tests/Directory.Build.props index 60906cd5a0..5b0337a39f 100644 --- a/tests/Directory.Build.props +++ b/tests/Directory.Build.props @@ -8,6 +8,7 @@ $([MSBuild]::NormalizeDirectory($(ArtifactsDir), 'helix', 'workload-tests')) $([MSBuild]::NormalizeDirectory($(ArtifactsDir), 'helix', 'e2e-tests')) $(ArtifactsBinDir)playwright-deps + $(IntermediateOutputPath)Directory.Packages.Versions.props $(ArtifactsTestResultsDir) diff --git a/tests/Shared/Aspire.Workload.Testing.props b/tests/Shared/Aspire.Workload.Testing.props index a8fdf2fa63..bf3a3b5274 100644 --- a/tests/Shared/Aspire.Workload.Testing.props +++ b/tests/Shared/Aspire.Workload.Testing.props @@ -6,6 +6,7 @@ $(RepoRoot)NuGet.config $(ArtifactsObjDir)nuget.workload.config + $(IntermediateOutputPath)Directory.Packages.Versions.props <_GlobalJsonContent>$([System.IO.File]::ReadAllText('$(RepoRoot)global.json')) <_DotNetCliVersionFromGlobalJson>$([System.Text.RegularExpressions.Regex]::Match($(_GlobalJsonContent), '(%3F<="dotnet": ").*(%3F=")')) diff --git a/tests/Shared/Aspire.Workload.Testing.targets b/tests/Shared/Aspire.Workload.Testing.targets index a6a8a64743..f214e35079 100644 --- a/tests/Shared/Aspire.Workload.Testing.targets +++ b/tests/Shared/Aspire.Workload.Testing.targets @@ -76,97 +76,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - <_TestAssetsOutputDir>$(OutputPath)\testassets\ - - <_PackagePropsContents> - - - $(PackageVersion) - $(MicrosoftExtensionsHostingAbstractionsPackageVersion) - $(MicrosoftExtensionsHostingPackageVersion) - - -]]> - - - - - - + 1. .\build.cmd -pack (or ./build.sh on unix) + 2. dotnet build tests/workloads.proj /p:Configuration=$(Configuration)" />